home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 22 / AMUG_22-4.ISO / Files IV / Prog / S / StuLib 2.6.sit / StuLib / Source Code ƒ / DockBarUtils ƒ / DockBarUtils.c next >
MacBinary  |  1983-03-24  |  30.9 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Mar 24 13:26:21 1983, modified Thu Mar 24 13:26:21 1983, creator 'CWIE', type ASCII, 30913 bytes "DockBarUtils.c" , at 0x7941 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 44 6f 63 6b 42 61 | 72 55 74 69 6c 73 2e 63 |..DockBa|rUtils.c|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 78 c1 00 | 00 01 9a 95 06 60 cd 95 |.....x..|.....`..|
|00000060| 06 60 cd 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.`......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1d c1 00 00 |........|........|
|00000080| 2f 2f 09 44 6f 63 6b 42 | 61 72 55 74 69 6c 73 0d |//.DockB|arUtils.|
|00000090| 2f 2f 09 a9 31 39 39 37 | 20 53 74 75 61 72 74 20 |//..1997| Stuart |
|000000a0| 53 6e 61 64 64 6f 6e 0d | 2f 2f 0d 0d 23 69 6e 63 |Snaddon.|//..#inc|
|000000b0| 6c 75 64 65 20 3c 51 44 | 4f 66 66 73 63 72 65 65 |lude <QD|Offscree|
|000000c0| 6e 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 22 44 |n.h>.#in|clude "D|
|000000d0| 6f 63 6b 42 61 72 55 74 | 69 6c 73 2e 68 22 0d 23 |ockBarUt|ils.h".#|
|000000e0| 69 6e 63 6c 75 64 65 20 | 22 4d 69 73 63 55 74 69 |include |"MiscUti|
|000000f0| 6c 73 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |ls.h".#i|nclude "|
|00000100| 46 6c 6f 61 74 65 72 55 | 74 69 6c 73 2e 68 22 0d |FloaterU|tils.h".|
|00000110| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 72 69 6e 67 |#include| <string|
|00000120| 2e 68 3e 0d 0d 74 79 70 | 65 64 65 66 20 73 74 72 |.h>..typ|edef str|
|00000130| 75 63 74 20 7b 0d 09 52 | 47 42 43 6f 6c 6f 72 09 |uct {..R|GBColor.|
|00000140| 6c 69 67 68 74 47 72 61 | 79 2c 67 72 61 79 2c 64 |lightGra|y,gray,d|
|00000150| 61 72 6b 47 72 61 79 2c | 68 69 6c 69 74 65 3b 0d |arkGray,|hilite;.|
|00000160| 09 73 68 6f 72 74 09 69 | 73 43 61 70 61 62 6c 65 |.short.i|sCapable|
|00000170| 3b 0d 09 7d 20 44 6f 63 | 6b 43 6f 6c 6f 72 73 3b |;..} Doc|kColors;|
|00000180| 0d 09 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |...typed|ef struc|
|00000190| 74 20 7b 0d 09 4f 53 54 | 79 70 65 09 69 74 65 6d |t {..OST|ype.item|
|000001a0| 4b 69 6e 64 3b 0d 09 6c | 6f 6e 67 09 09 77 69 64 |Kind;..l|ong..wid|
|000001b0| 74 68 3b 0d 09 6c 6f 6e | 67 09 09 70 61 72 61 6d |th;..lon|g..param|
|000001c0| 31 3b 0d 09 6c 6f 6e 67 | 09 09 70 61 72 61 6d 32 |1;..long|..param2|
|000001d0| 3b 0d 09 4f 53 54 79 70 | 65 09 61 63 74 69 6f 6e |;..OSTyp|e.action|
|000001e0| 3b 0d 09 63 68 61 72 09 | 09 69 73 53 74 69 63 6b |;..char.|.isStick|
|000001f0| 79 2c 20 66 69 6c 6c 31 | 3b 0d 09 63 68 61 72 09 |y, fill1|;..char.|
|00000200| 09 68 69 67 68 6c 69 67 | 68 74 65 64 2c 20 66 69 |.highlig|hted, fi|
|00000210| 6c 6c 32 3b 0d 09 63 68 | 61 72 09 09 64 69 73 61 |ll2;..ch|ar..disa|
|00000220| 62 6c 65 64 2c 20 66 69 | 6c 6c 33 3b 0d 09 63 68 |bled, fi|ll3;..ch|
|00000230| 61 72 09 09 73 65 6c 65 | 63 74 61 62 6c 65 2c 20 |ar..sele|ctable, |
|00000240| 66 69 6c 6c 34 3b 0d 09 | 6c 6f 6e 67 09 09 72 65 |fill4;..|long..re|
|00000250| 73 65 72 76 65 64 31 3b | 0d 09 6c 6f 6e 67 09 09 |served1;|..long..|
|00000260| 72 65 73 65 72 76 65 64 | 32 3b 0d 09 7d 20 44 6f |reserved|2;..} Do|
|00000270| 63 6b 49 74 65 6d 49 6e | 66 6f 3b 0d 09 0d 74 79 |ckItemIn|fo;...ty|
|00000280| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 7b 0d 09 |pedef st|ruct {..|
|00000290| 63 68 61 72 09 09 09 73 | 68 6f 77 54 65 78 74 2c |char...s|howText,|
|000002a0| 66 69 6c 6c 31 3b 0d 09 | 73 68 6f 72 74 09 09 74 |fill1;..|short..t|
|000002b0| 65 78 74 49 44 3b 0d 09 | 6c 6f 6e 67 09 09 09 72 |extID;..|long...r|
|000002c0| 65 73 65 72 76 65 64 31 | 3b 0d 09 6c 6f 6e 67 09 |eserved1|;..long.|
|000002d0| 09 09 72 65 73 65 72 76 | 65 64 32 3b 0d 09 73 68 |..reserv|ed2;..sh|
|000002e0| 6f 72 74 09 09 66 69 6c | 6c 32 3b 0d 09 73 68 6f |ort..fil|l2;..sho|
|000002f0| 72 74 09 09 6e 75 6d 49 | 74 65 6d 73 3b 0d 09 44 |rt..numI|tems;..D|
|00000300| 6f 63 6b 49 74 65 6d 49 | 6e 66 6f 09 69 6e 66 6f |ockItemI|nfo.info|
|00000310| 5b 31 32 38 5d 3b 0d 09 | 7d 20 44 42 4c 69 73 74 |[128];..|} DBList|
|00000320| 2c 20 2a 44 42 4c 69 73 | 74 50 74 72 2c 20 2a 2a |, *DBLis|tPtr, **|
|00000330| 44 42 4c 69 73 74 48 61 | 6e 64 6c 65 3b 0d 0d 74 |DBListHa|ndle;..t|
|00000340| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 64 62 |ypedef s|truct db|
|00000350| 20 7b 0d 09 44 42 4c 69 | 73 74 09 09 6c 69 73 74 | {..DBLi|st..list|
|00000360| 3b 0d 09 53 74 72 32 35 | 35 09 09 72 65 73 4e 61 |;..Str25|5..resNa|
|00000370| 6d 65 3b 0d 09 44 42 53 | 74 79 6c 65 09 09 73 74 |me;..DBS|tyle..st|
|00000380| 79 6c 65 3b 0d 09 57 69 | 6e 64 6f 77 50 74 72 09 |yle;..Wi|ndowPtr.|
|00000390| 77 69 6e 64 6f 77 2c 20 | 6f 75 74 70 75 74 57 69 |window, |outputWi|
|000003a0| 6e 64 6f 77 3b 0d 09 63 | 68 61 72 09 09 09 69 73 |ndow;..c|har...is|
|000003b0| 56 69 73 69 62 6c 65 3b | 0d 09 63 68 61 72 09 09 |Visible;|..char..|
|000003c0| 09 69 73 44 6f 63 6b 65 | 64 3b 0d 09 52 65 63 74 |.isDocke|d;..Rect|
|000003d0| 09 09 09 62 6f 75 6e 64 | 73 3b 0d 09 73 74 72 75 |...bound|s;..stru|
|000003e0| 63 74 20 64 62 09 09 2a | 6e 65 78 74 3b 0d 09 7d |ct db..*|next;..}|
|000003f0| 20 44 42 2c 20 2a 44 42 | 50 74 72 3b 0d 09 0d 74 | DB, *DB|Ptr;...t|
|00000400| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 64 62 |ypedef s|truct db|
|00000410| 77 69 6e 64 6f 77 54 61 | 67 20 7b 0d 09 57 69 6e |windowTa|g {..Win|
|00000420| 64 6f 77 50 74 72 09 77 | 69 6e 64 6f 77 3b 0d 09 |dowPtr.w|indow;..|
|00000430| 73 68 6f 72 74 09 09 6f | 66 66 73 65 74 3b 0d 09 |short..o|ffset;..|
|00000440| 44 42 50 74 72 09 09 64 | 6f 63 6b 48 65 61 64 3b |DBPtr..d|ockHead;|
|00000450| 0d 09 73 74 72 75 63 74 | 20 64 62 77 69 6e 64 6f |..struct| dbwindo|
|00000460| 77 54 61 67 20 2a 6e 65 | 78 74 3b 0d 09 7d 20 44 |wTag *ne|xt;..} D|
|00000470| 42 57 69 6e 64 6f 77 44 | 65 73 63 2c 20 2a 44 42 |BWindowD|esc, *DB|
|00000480| 57 69 6e 64 6f 77 50 74 | 72 3b 0d 09 0d 74 79 70 |WindowPt|r;...typ|
|00000490| 65 64 65 66 20 73 74 72 | 75 63 74 20 7b 0d 09 44 |edef str|uct {..D|
|000004a0| 42 57 69 6e 64 6f 77 50 | 74 72 09 68 65 61 64 3b |BWindowP|tr.head;|
|000004b0| 0d 09 47 72 61 66 50 74 | 72 09 09 73 61 76 65 50 |..GrafPt|r..saveP|
|000004c0| 6f 72 74 3b 0d 09 50 65 | 6e 53 74 61 74 65 09 09 |ort;..Pe|nState..|
|000004d0| 73 61 76 65 50 65 6e 3b | 0d 09 44 42 53 74 79 6c |savePen;|..DBStyl|
|000004e0| 65 09 09 73 61 76 65 53 | 74 79 6c 65 3b 0d 09 52 |e..saveS|tyle;..R|
|000004f0| 47 42 43 6f 6c 6f 72 09 | 09 73 61 76 65 46 6f 72 |GBColor.|.saveFor|
|00000500| 65 43 6f 6c 6f 72 2c 73 | 61 76 65 42 61 63 6b 43 |eColor,s|aveBackC|
|00000510| 6f 6c 6f 72 3b 0d 09 73 | 68 6f 72 74 09 09 73 61 |olor;..s|hort..sa|
|00000520| 76 65 4f 72 69 67 69 6e | 3b 0d 09 44 6f 63 6b 43 |veOrigin|;..DockC|
|00000530| 6f 6c 6f 72 73 09 63 6f | 6c 6f 72 3b 0d 09 46 6f |olors.co|lor;..Fo|
|00000540| 6e 74 49 6e 66 6f 09 09 | 74 65 78 74 49 6e 66 6f |ntInfo..|textInfo|
|00000550| 3b 0d 09 7d 20 44 42 47 | 6c 6f 62 61 6c 73 2c 20 |;..} DBG|lobals, |
|00000560| 2a 44 42 47 6c 6f 62 61 | 6c 73 50 74 72 3b 0d 09 |*DBGloba|lsPtr;..|
|00000570| 0d 2f 2f 20 2a 2a 0d 0d | 44 42 47 6c 6f 62 61 6c |.// **..|DBGlobal|
|00000580| 73 50 74 72 09 44 67 20 | 3d 20 30 3b 0d 0d 2f 2f |sPtr.Dg |= 0;..//|
|00000590| 20 2a 2a 0d 0d 44 42 57 | 69 6e 64 6f 77 50 74 72 | **..DBW|indowPtr|
|000005a0| 20 09 47 65 74 44 42 46 | 72 6f 6d 57 69 6e 64 6f | .GetDBF|romWindo|
|000005b0| 77 28 57 69 6e 64 6f 77 | 50 74 72 20 74 68 65 57 |w(Window|Ptr theW|
|000005c0| 69 6e 64 6f 77 29 3b 0d | 44 42 50 74 72 20 09 09 |indow);.|DBPtr ..|
|000005d0| 47 65 74 44 42 50 74 72 | 46 72 6f 6d 44 42 28 44 |GetDBPtr|FromDB(D|
|000005e0| 42 57 69 6e 64 6f 77 50 | 74 72 20 74 68 65 4c 69 |BWindowP|tr theLi|
|000005f0| 73 74 2c 20 53 74 72 32 | 35 35 20 74 68 65 44 6f |st, Str2|55 theDo|
|00000600| 63 6b 4e 61 6d 65 29 3b | 0d 76 6f 69 64 20 09 09 |ckName);|.void ..|
|00000610| 09 44 42 52 65 73 74 6f | 72 65 50 65 6e 53 74 75 |.DBResto|rePenStu|
|00000620| 66 66 28 73 68 6f 72 74 | 20 66 75 6c 6c 29 3b 0d |ff(short| full);.|
|00000630| 76 6f 69 64 20 09 09 09 | 44 42 53 65 74 55 70 50 |void ...|DBSetUpP|
|00000640| 65 6e 53 74 75 66 66 28 | 57 69 6e 64 6f 77 50 74 |enStuff(|WindowPt|
|00000650| 72 20 74 68 65 57 69 6e | 64 6f 77 2c 20 53 74 72 |r theWin|dow, Str|
|00000660| 32 35 35 20 74 68 65 44 | 6f 63 6b 42 61 72 2c 20 |255 theD|ockBar, |
|00000670| 73 68 6f 72 74 20 66 75 | 6c 6c 29 3b 0d 52 65 63 |short fu|ll);.Rec|
|00000680| 74 20 09 09 09 47 65 74 | 44 42 52 65 63 74 28 57 |t ...Get|DBRect(W|
|00000690| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind|
|000006a0| 6f 77 29 3b 0d 76 6f 69 | 64 20 09 09 09 44 42 44 |ow);.voi|d ...DBD|
|000006b0| 72 61 77 33 44 52 65 63 | 74 28 52 65 63 74 20 2a |raw3DRec|t(Rect *|
|000006c0| 74 68 65 52 65 63 74 2c | 20 63 68 61 72 20 6d 6f |theRect,| char mo|
|000006d0| 64 65 29 3b 0d 76 6f 69 | 64 09 09 09 44 42 44 72 |de);.voi|d...DBDr|
|000006e0| 61 77 49 74 65 6d 28 44 | 6f 63 6b 49 74 65 6d 49 |awItem(D|ockItemI|
|000006f0| 6e 66 6f 20 2a 74 68 65 | 49 74 65 6d 2c 20 52 65 |nfo *the|Item, Re|
|00000700| 63 74 20 2a 74 68 65 52 | 65 63 74 29 3b 0d 73 68 |ct *theR|ect);.sh|
|00000710| 6f 72 74 09 09 44 42 47 | 65 74 49 74 65 6d 41 74 |ort..DBG|etItemAt|
|00000720| 50 6f 69 6e 74 28 44 42 | 50 74 72 20 6e 6f 64 65 |Point(DB|Ptr node|
|00000730| 2c 20 50 6f 69 6e 74 20 | 6c 6f 63 61 6c 50 74 29 |, Point |localPt)|
|00000740| 3b 0d 52 65 63 74 09 09 | 09 44 42 47 65 74 49 74 |;.Rect..|.DBGetIt|
|00000750| 65 6d 52 65 63 74 28 44 | 42 50 74 72 20 6e 6f 64 |emRect(D|BPtr nod|
|00000760| 65 2c 20 73 68 6f 72 74 | 20 74 68 65 49 74 65 6d |e, short| theItem|
|00000770| 29 3b 0d 76 6f 69 64 20 | 09 09 09 44 42 49 6e 76 |);.void |...DBInv|
|00000780| 65 72 74 28 44 42 50 74 | 72 20 6e 6f 64 65 2c 20 |ert(DBPt|r node, |
|00000790| 73 68 6f 72 74 20 74 68 | 65 49 74 65 6d 2c 20 73 |short th|eItem, s|
|000007a0| 68 6f 72 74 20 69 73 53 | 65 6c 65 63 74 65 64 29 |hort isS|elected)|
|000007b0| 3b 0d 73 68 6f 72 74 09 | 09 44 42 44 6f 63 6b 46 |;.short.|.DBDockF|
|000007c0| 6c 6f 61 74 65 72 28 57 | 69 6e 64 6f 77 50 74 72 |loater(W|indowPtr|
|000007d0| 20 74 68 65 46 6c 6f 61 | 74 65 72 2c 20 57 69 6e | theFloa|ter, Win|
|000007e0| 64 6f 77 50 74 72 20 74 | 68 65 57 69 6e 64 6f 77 |dowPtr t|heWindow|
|000007f0| 29 3b 0d 76 6f 69 64 09 | 09 09 44 42 47 65 74 4e |);.void.|..DBGetN|
|00000800| 61 6d 65 46 72 6f 6d 50 | 6f 69 6e 74 28 57 69 6e |ameFromP|oint(Win|
|00000810| 64 6f 77 50 74 72 20 74 | 68 65 57 69 6e 64 6f 77 |dowPtr t|heWindow|
|00000820| 2c 20 50 6f 69 6e 74 20 | 77 68 65 72 65 2c 20 53 |, Point |where, S|
|00000830| 74 72 32 35 35 20 2a 74 | 68 65 44 6f 63 6b 42 61 |tr255 *t|heDockBa|
|00000840| 72 29 3b 0d 0d 2f 2f 20 | 2a 2a 0d 76 6f 69 64 09 |r);..// |**.void.|
|00000850| 09 44 42 47 65 74 4e 61 | 6d 65 46 72 6f 6d 50 6f |.DBGetNa|meFromPo|
|00000860| 69 6e 74 28 57 69 6e 64 | 6f 77 50 74 72 20 74 68 |int(Wind|owPtr th|
|00000870| 65 57 69 6e 64 6f 77 2c | 20 50 6f 69 6e 74 20 77 |eWindow,| Point w|
|00000880| 68 65 72 65 2c 20 53 74 | 72 32 35 35 20 2a 74 68 |here, St|r255 *th|
|00000890| 65 44 6f 63 6b 42 61 72 | 29 20 7b 0d 0d 09 44 42 |eDockBar|) {...DB|
|000008a0| 57 69 6e 64 6f 77 50 74 | 72 09 74 68 65 44 42 4c |WindowPt|r.theDBL|
|000008b0| 69 73 74 20 3d 20 47 65 | 74 44 42 46 72 6f 6d 57 |ist = Ge|tDBFromW|
|000008c0| 69 6e 64 6f 77 28 74 68 | 65 57 69 6e 64 6f 77 29 |indow(th|eWindow)|
|000008d0| 3b 0d 09 44 42 50 74 72 | 09 09 74 68 65 44 6f 63 |;..DBPtr|..theDoc|
|000008e0| 6b 20 3d 20 74 68 65 44 | 42 4c 69 73 74 2d 3e 64 |k = theD|BList->d|
|000008f0| 6f 63 6b 48 65 61 64 3b | 0d 09 0d 09 44 42 53 65 |ockHead;|....DBSe|
|00000900| 74 55 70 50 65 6e 53 74 | 75 66 66 28 74 68 65 57 |tUpPenSt|uff(theW|
|00000910| 69 6e 64 6f 77 2c 20 47 | 65 74 44 42 46 72 6f 6d |indow, G|etDBFrom|
|00000920| 57 69 6e 64 6f 77 28 74 | 68 65 57 69 6e 64 6f 77 |Window(t|heWindow|
|00000930| 29 2d 3e 64 6f 63 6b 48 | 65 61 64 2d 3e 72 65 73 |)->dockH|ead->res|
|00000940| 4e 61 6d 65 2c 20 74 72 | 75 65 29 3b 0d 09 47 6c |Name, tr|ue);..Gl|
|00000950| 6f 62 61 6c 54 6f 4c 6f | 63 61 6c 28 26 77 68 65 |obalToLo|cal(&whe|
|00000960| 72 65 29 3b 0d 09 28 2a | 74 68 65 44 6f 63 6b 42 |re);..(*|theDockB|
|00000970| 61 72 29 5b 30 5d 20 3d | 20 30 3b 0d 09 77 68 69 |ar)[0] =| 0;..whi|
|00000980| 6c 65 20 28 74 68 65 44 | 6f 63 6b 29 20 7b 0d 09 |le (theD|ock) {..|
|00000990| 09 69 66 20 28 50 74 49 | 6e 52 65 63 74 28 77 68 |.if (PtI|nRect(wh|
|000009a0| 65 72 65 2c 20 26 74 68 | 65 44 6f 63 6b 2d 3e 62 |ere, &th|eDock->b|
|000009b0| 6f 75 6e 64 73 29 20 26 | 26 20 28 74 68 65 44 6f |ounds) &|& (theDo|
|000009c0| 63 6b 2d 3e 69 73 56 69 | 73 69 62 6c 65 29 20 26 |ck->isVi|sible) &|
|000009d0| 26 20 28 74 68 65 44 6f | 63 6b 2d 3e 69 73 44 6f |& (theDo|ck->isDo|
|000009e0| 63 6b 65 64 29 29 0d 09 | 09 09 42 6c 6f 63 6b 4d |cked))..|..BlockM|
|000009f0| 6f 76 65 28 74 68 65 44 | 6f 63 6b 2d 3e 72 65 73 |ove(theD|ock->res|
|00000a00| 4e 61 6d 65 2c 20 2a 74 | 68 65 44 6f 63 6b 42 61 |Name, *t|heDockBa|
|00000a10| 72 2c 20 32 35 36 29 3b | 0d 09 09 74 68 65 44 6f |r, 256);|...theDo|
|00000a20| 63 6b 20 3d 20 74 68 65 | 44 6f 63 6b 2d 3e 6e 65 |ck = the|Dock->ne|
|00000a30| 78 74 3b 0d 09 09 7d 0d | 09 44 42 52 65 73 74 6f |xt;...}.|.DBResto|
|00000a40| 72 65 50 65 6e 53 74 75 | 66 66 28 74 72 75 65 29 |rePenStu|ff(true)|
|00000a50| 3b 0d 7d 0d 0d 73 68 6f | 72 74 09 44 42 44 6f 63 |;.}..sho|rt.DBDoc|
|00000a60| 6b 46 6c 6f 61 74 65 72 | 28 57 69 6e 64 6f 77 50 |kFloater|(WindowP|
|00000a70| 74 72 20 74 68 65 46 6c | 6f 61 74 65 72 2c 20 57 |tr theFl|oater, W|
|00000a80| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind|
|00000a90| 6f 77 29 20 7b 0d 09 44 | 42 50 74 72 20 6e 6f 64 |ow) {..D|BPtr nod|
|00000aa0| 65 20 3d 20 28 44 42 50 | 74 72 29 47 65 74 57 52 |e = (DBP|tr)GetWR|
|00000ab0| 65 66 43 6f 6e 28 74 68 | 65 46 6c 6f 61 74 65 72 |efCon(th|eFloater|
|00000ac0| 29 3b 0d 09 4f 53 54 79 | 70 65 09 09 6b 69 6e 64 |);..OSTy|pe..kind|
|00000ad0| 3b 0d 09 50 6f 69 6e 74 | 09 09 09 6c 6f 63 61 6c |;..Point|...local|
|00000ae0| 50 74 3b 0d 09 0d 09 6e | 6f 64 65 2d 3e 6f 75 74 |Pt;....n|ode->out|
|00000af0| 70 75 74 57 69 6e 64 6f | 77 20 3d 20 6e 6f 64 65 |putWindo|w = node|
|00000b00| 2d 3e 77 69 6e 64 6f 77 | 3b 0d 09 6e 6f 64 65 2d |->window|;..node-|
|00000b10| 3e 69 73 44 6f 63 6b 65 | 64 20 3d 20 74 72 75 65 |>isDocke|d = true|
|00000b20| 3b 20 0d 09 0d 09 44 42 | 53 68 6f 77 48 69 64 65 |; ....DB|ShowHide|
|00000b30| 28 6e 6f 64 65 2d 3e 77 | 69 6e 64 6f 77 2c 20 6e |(node->w|indow, n|
|00000b40| 6f 64 65 2d 3e 72 65 73 | 4e 61 6d 65 2c 20 74 72 |ode->res|Name, tr|
|00000b50| 75 65 29 3b 0d 09 0d 09 | 53 65 74 50 6f 72 74 28 |ue);....|SetPort(|
|00000b60| 74 68 65 57 69 6e 64 6f | 77 29 3b 0d 09 6c 6f 63 |theWindo|w);..loc|
|00000b70| 61 6c 50 74 2e 68 20 3d | 20 35 3b 0d 09 6c 6f 63 |alPt.h =| 5;..loc|
|00000b80| 61 6c 50 74 2e 76 20 3d | 20 2d 44 42 47 65 74 48 |alPt.v =| -DBGetH|
|00000b90| 65 69 67 68 74 28 6e 6f | 64 65 2d 3e 77 69 6e 64 |eight(no|de->wind|
|00000ba0| 6f 77 29 20 2b 20 6e 6f | 64 65 2d 3e 62 6f 75 6e |ow) + no|de->boun|
|00000bb0| 64 73 2e 62 6f 74 74 6f | 6d 20 2d 20 39 3b 0d 09 |ds.botto|m - 9;..|
|00000bc0| 4c 6f 63 61 6c 54 6f 47 | 6c 6f 62 61 6c 28 26 6c |LocalToG|lobal(&l|
|00000bd0| 6f 63 61 6c 50 74 29 3b | 0d 09 0d 09 44 42 43 6c |ocalPt);|....DBCl|
|00000be0| 69 63 6b 28 6e 6f 64 65 | 2d 3e 77 69 6e 64 6f 77 |ick(node|->window|
|00000bf0| 2c 20 6c 6f 63 61 6c 50 | 74 2c 20 26 6b 69 6e 64 |, localP|t, &kind|
|00000c00| 29 3b 0d 09 44 42 55 70 | 64 61 74 65 28 6e 6f 64 |);..DBUp|date(nod|
|00000c10| 65 2d 3e 77 69 6e 64 6f | 77 29 3b 0d 09 0d 09 72 |e->windo|w);....r|
|00000c20| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 7d 0d 09 0d |eturn tr|ue;.}...|
|00000c30| 44 42 50 74 72 20 47 65 | 74 44 42 50 74 72 46 72 |DBPtr Ge|tDBPtrFr|
|00000c40| 6f 6d 44 42 28 44 42 57 | 69 6e 64 6f 77 50 74 72 |omDB(DBW|indowPtr|
|00000c50| 20 74 68 65 4c 69 73 74 | 2c 20 53 74 72 32 35 35 | theList|, Str255|
|00000c60| 20 74 68 65 44 6f 63 6b | 4e 61 6d 65 29 0d 09 7b | theDock|Name)..{|
|00000c70| 0d 09 65 78 74 65 72 6e | 20 44 42 47 6c 6f 62 61 |..extern| DBGloba|
|00000c80| 6c 73 50 74 72 20 44 67 | 3b 0d 09 44 42 50 74 72 |lsPtr Dg|;..DBPtr|
|00000c90| 09 70 2c 71 3b 0d 0d 09 | 70 3d 74 68 65 4c 69 73 |.p,q;...|p=theLis|
|00000ca0| 74 2d 3e 64 6f 63 6b 48 | 65 61 64 3b 0d 09 71 3d |t->dockH|ead;..q=|
|00000cb0| 6e 69 6c 3b 0d 09 77 68 | 69 6c 65 20 28 70 21 3d |nil;..wh|ile (p!=|
|00000cc0| 71 29 20 7b 0d 09 09 69 | 66 20 28 45 71 75 61 6c |q) {...i|f (Equal|
|00000cd0| 53 74 72 69 6e 67 28 70 | 2d 3e 72 65 73 4e 61 6d |String(p|->resNam|
|00000ce0| 65 2c 20 74 68 65 44 6f | 63 6b 4e 61 6d 65 2c 20 |e, theDo|ckName, |
|00000cf0| 66 61 6c 73 65 2c 20 66 | 61 6c 73 65 29 29 0d 09 |false, f|alse))..|
|00000d00| 09 09 71 3d 70 3b 0d 09 | 09 65 6c 73 65 0d 09 09 |..q=p;..|.else...|
|00000d10| 09 70 3d 70 2d 3e 6e 65 | 78 74 3b 0d 09 09 7d 0d |.p=p->ne|xt;...}.|
|00000d20| 09 72 65 74 75 72 6e 20 | 70 3b 0d 09 7d 0d 0d 44 |.return |p;..}..D|
|00000d30| 42 57 69 6e 64 6f 77 50 | 74 72 20 09 47 65 74 44 |BWindowP|tr .GetD|
|00000d40| 42 46 72 6f 6d 57 69 6e | 64 6f 77 28 57 69 6e 64 |BFromWin|dow(Wind|
|00000d50| 6f 77 50 74 72 20 74 68 | 65 57 69 6e 64 6f 77 29 |owPtr th|eWindow)|
|00000d60| 0d 09 7b 0d 09 65 78 74 | 65 72 6e 20 44 42 47 6c |..{..ext|ern DBGl|
|00000d70| 6f 62 61 6c 73 50 74 72 | 20 44 67 3b 0d 09 44 42 |obalsPtr| Dg;..DB|
|00000d80| 57 69 6e 64 6f 77 50 74 | 72 09 70 2c 71 3b 0d 0d |WindowPt|r.p,q;..|
|00000d90| 09 70 3d 44 67 2d 3e 68 | 65 61 64 3b 0d 09 71 3d |.p=Dg->h|ead;..q=|
|00000da0| 6e 69 6c 3b 0d 09 77 68 | 69 6c 65 20 28 70 21 3d |nil;..wh|ile (p!=|
|00000db0| 71 29 20 7b 0d 09 09 69 | 66 20 28 70 2d 3e 77 69 |q) {...i|f (p->wi|
|00000dc0| 6e 64 6f 77 3d 3d 74 68 | 65 57 69 6e 64 6f 77 29 |ndow==th|eWindow)|
|00000dd0| 0d 09 09 09 71 3d 70 3b | 0d 09 09 65 6c 73 65 0d |....q=p;|...else.|
|00000de0| 09 09 09 70 3d 70 2d 3e | 6e 65 78 74 3b 0d 09 09 |...p=p->|next;...|
|00000df0| 7d 0d 09 72 65 74 75 72 | 6e 20 70 3b 0d 09 7d 0d |}..retur|n p;..}.|
|00000e00| 09 0d 76 6f 69 64 20 09 | 09 44 42 52 65 73 74 6f |..void .|.DBResto|
|00000e10| 72 65 50 65 6e 53 74 75 | 66 66 28 73 68 6f 72 74 |rePenStu|ff(short|
|00000e20| 20 66 75 6c 6c 29 0d 09 | 7b 0d 09 65 78 74 65 72 | full)..|{..exter|
|00000e30| 6e 20 44 42 47 6c 6f 62 | 61 6c 73 50 74 72 20 44 |n DBGlob|alsPtr D|
|00000e40| 67 3b 0d 09 47 72 61 66 | 50 74 72 09 74 65 6d 70 |g;..Graf|Ptr.temp|
|00000e50| 50 6f 72 74 3b 0d 09 0d | 09 69 66 20 28 66 75 6c |Port;...|.if (ful|
|00000e60| 6c 29 20 7b 0d 09 09 47 | 65 74 50 6f 72 74 28 26 |l) {...G|etPort(&|
|00000e70| 74 65 6d 70 50 6f 72 74 | 29 3b 0d 09 09 74 65 6d |tempPort|);...tem|
|00000e80| 70 50 6f 72 74 2d 3e 74 | 78 46 6f 6e 74 3d 44 67 |pPort->t|xFont=Dg|
|00000e90| 2d 3e 73 61 76 65 53 74 | 79 6c 65 2e 74 78 46 6f |->saveSt|yle.txFo|
|00000ea0| 6e 74 3b 0d 09 09 74 65 | 6d 70 50 6f 72 74 2d 3e |nt;...te|mpPort->|
|00000eb0| 74 78 4d 6f 64 65 3d 44 | 67 2d 3e 73 61 76 65 53 |txMode=D|g->saveS|
|00000ec0| 74 79 6c 65 2e 74 78 4d | 6f 64 65 3b 0d 09 09 74 |tyle.txM|ode;...t|
|00000ed0| 65 6d 70 50 6f 72 74 2d | 3e 74 78 46 61 63 65 3d |empPort-|>txFace=|
|00000ee0| 44 67 2d 3e 73 61 76 65 | 53 74 79 6c 65 2e 74 78 |Dg->save|Style.tx|
|00000ef0| 46 61 63 65 3b 0d 09 09 | 74 65 6d 70 50 6f 72 74 |Face;...|tempPort|
|00000f00| 2d 3e 74 78 53 69 7a 65 | 3d 44 67 2d 3e 73 61 76 |->txSize|=Dg->sav|
|00000f10| 65 53 74 79 6c 65 2e 74 | 78 53 69 7a 65 3b 0d 09 |eStyle.t|xSize;..|
|00000f20| 09 52 47 42 46 6f 72 65 | 43 6f 6c 6f 72 28 26 28 |.RGBFore|Color(&(|
|00000f30| 44 67 2d 3e 73 61 76 65 | 46 6f 72 65 43 6f 6c 6f |Dg->save|ForeColo|
|00000f40| 72 29 29 3b 0d 09 09 52 | 47 42 42 61 63 6b 43 6f |r));...R|GBBackCo|
|00000f50| 6c 6f 72 28 26 28 44 67 | 2d 3e 73 61 76 65 42 61 |lor(&(Dg|->saveBa|
|00000f60| 63 6b 43 6f 6c 6f 72 29 | 29 3b 0d 09 09 53 65 74 |ckColor)|);...Set|
|00000f70| 4f 72 69 67 69 6e 28 74 | 65 6d 70 50 6f 72 74 2d |Origin(t|empPort-|
|00000f80| 3e 70 6f 72 74 52 65 63 | 74 2e 6c 65 66 74 2c 44 |>portRec|t.left,D|
|00000f90| 67 2d 3e 73 61 76 65 4f | 72 69 67 69 6e 29 3b 0d |g->saveO|rigin);.|
|00000fa0| 09 09 53 65 74 50 65 6e | 53 74 61 74 65 28 26 44 |..SetPen|State(&D|
|00000fb0| 67 2d 3e 73 61 76 65 50 | 65 6e 29 3b 0d 09 09 53 |g->saveP|en);...S|
|00000fc0| 65 74 50 6f 72 74 28 44 | 67 2d 3e 73 61 76 65 50 |etPort(D|g->saveP|
|00000fd0| 6f 72 74 29 3b 7d 0d 09 | 7d 0d 09 0d 76 6f 69 64 |ort);}..|}...void|
|00000fe0| 20 09 09 44 42 53 65 74 | 55 70 50 65 6e 53 74 75 | ..DBSet|UpPenStu|
|00000ff0| 66 66 28 57 69 6e 64 6f | 77 50 74 72 20 74 68 65 |ff(Windo|wPtr the|
|00001000| 57 69 6e 64 6f 77 2c 20 | 53 74 72 32 35 35 20 74 |Window, |Str255 t|
|00001010| 68 65 44 6f 63 6b 42 61 | 72 2c 20 73 68 6f 72 74 |heDockBa|r, short|
|00001020| 20 66 75 6c 6c 29 0d 09 | 7b 0d 09 65 78 74 65 72 | full)..|{..exter|
|00001030| 6e 20 44 42 47 6c 6f 62 | 61 6c 73 50 74 72 20 44 |n DBGlob|alsPtr D|
|00001040| 67 3b 0d 09 44 42 50 74 | 72 09 09 6e 6f 64 65 3b |g;..DBPt|r..node;|
|00001050| 0d 09 43 47 72 61 66 50 | 74 72 09 09 6d 67 72 50 |..CGrafP|tr..mgrP|
|00001060| 6f 72 74 3b 0d 09 09 0d | 09 69 66 20 28 66 75 6c |ort;....|.if (ful|
|00001070| 6c 29 20 7b 0d 09 09 47 | 65 74 50 6f 72 74 28 26 |l) {...G|etPort(&|
|00001080| 28 44 67 2d 3e 73 61 76 | 65 50 6f 72 74 29 29 3b |(Dg->sav|ePort));|
|00001090| 0d 09 09 53 65 74 50 6f | 72 74 28 74 68 65 57 69 |...SetPo|rt(theWi|
|000010a0| 6e 64 6f 77 29 3b 0d 09 | 09 47 65 74 50 65 6e 53 |ndow);..|.GetPenS|
|000010b0| 74 61 74 65 28 26 28 44 | 67 2d 3e 73 61 76 65 50 |tate(&(D|g->saveP|
|000010c0| 65 6e 29 29 3b 0d 09 09 | 50 65 6e 4d 6f 64 65 28 |en));...|PenMode(|
|000010d0| 70 61 74 43 6f 70 79 29 | 3b 0d 09 09 50 65 6e 50 |patCopy)|;...PenP|
|000010e0| 61 74 28 26 71 64 2e 62 | 6c 61 63 6b 29 3b 0d 09 |at(&qd.b|lack);..|
|000010f0| 09 44 67 2d 3e 73 61 76 | 65 53 74 79 6c 65 2e 74 |.Dg->sav|eStyle.t|
|00001100| 78 46 6f 6e 74 3d 74 68 | 65 57 69 6e 64 6f 77 2d |xFont=th|eWindow-|
|00001110| 3e 74 78 46 6f 6e 74 3b | 0d 09 09 44 67 2d 3e 73 |>txFont;|...Dg->s|
|00001120| 61 76 65 53 74 79 6c 65 | 2e 74 78 53 69 7a 65 3d |aveStyle|.txSize=|
|00001130| 74 68 65 57 69 6e 64 6f | 77 2d 3e 74 78 53 69 7a |theWindo|w->txSiz|
|00001140| 65 3b 0d 09 09 44 67 2d | 3e 73 61 76 65 53 74 79 |e;...Dg-|>saveSty|
|00001150| 6c 65 2e 74 78 46 61 63 | 65 3d 74 68 65 57 69 6e |le.txFac|e=theWin|
|00001160| 64 6f 77 2d 3e 74 78 46 | 61 63 65 3b 0d 09 09 44 |dow->txF|ace;...D|
|00001170| 67 2d 3e 73 61 76 65 53 | 74 79 6c 65 2e 74 78 4d |g->saveS|tyle.txM|
|00001180| 6f 64 65 3d 74 68 65 57 | 69 6e 64 6f 77 2d 3e 74 |ode=theW|indow->t|
|00001190| 78 4d 6f 64 65 3b 0d 09 | 0d 09 09 47 65 74 46 6f |xMode;..|...GetFo|
|000011a0| 72 65 43 6f 6c 6f 72 28 | 26 28 44 67 2d 3e 73 61 |reColor(|&(Dg->sa|
|000011b0| 76 65 46 6f 72 65 43 6f | 6c 6f 72 29 29 3b 0d 09 |veForeCo|lor));..|
|000011c0| 09 47 65 74 42 61 63 6b | 43 6f 6c 6f 72 28 26 28 |.GetBack|Color(&(|
|000011d0| 44 67 2d 3e 73 61 76 65 | 42 61 63 6b 43 6f 6c 6f |Dg->save|BackColo|
|000011e0| 72 29 29 3b 0d 09 09 44 | 67 2d 3e 63 6f 6c 6f 72 |r));...D|g->color|
|000011f0| 2e 67 72 61 79 3d 47 65 | 74 47 72 61 79 43 6f 6c |.gray=Ge|tGrayCol|
|00001200| 6f 72 28 30 78 39 39 39 | 39 29 3b 0d 09 09 44 67 |or(0x999|9);...Dg|
|00001210| 2d 3e 63 6f 6c 6f 72 2e | 6c 69 67 68 74 47 72 61 |->color.|lightGra|
|00001220| 79 3d 47 65 74 47 72 61 | 79 43 6f 6c 6f 72 28 30 |y=GetGra|yColor(0|
|00001230| 78 45 45 45 45 29 3b 0d | 09 09 44 67 2d 3e 63 6f |xEEEE);.|..Dg->co|
|00001240| 6c 6f 72 2e 64 61 72 6b | 47 72 61 79 3d 47 65 74 |lor.dark|Gray=Get|
|00001250| 47 72 61 79 43 6f 6c 6f | 72 28 30 78 46 46 46 46 |GrayColo|r(0xFFFF|
|00001260| 29 3b 0d 09 09 47 65 74 | 43 57 4d 67 72 50 6f 72 |);...Get|CWMgrPor|
|00001270| 74 28 26 6d 67 72 50 6f | 72 74 29 3b 0d 09 09 44 |t(&mgrPo|rt);...D|
|00001280| 67 2d 3e 63 6f 6c 6f 72 | 2e 69 73 43 61 70 61 62 |g->color|.isCapab|
|00001290| 6c 65 3d 28 28 28 2a 28 | 6d 67 72 50 6f 72 74 2d |le=(((*(|mgrPort-|
|000012a0| 3e 70 6f 72 74 50 69 78 | 4d 61 70 29 29 2d 3e 70 |>portPix|Map))->p|
|000012b0| 69 78 65 6c 53 69 7a 65 | 3e 32 29 29 3b 0d 09 09 |ixelSize|>2));...|
|000012c0| 69 66 20 28 44 67 2d 3e | 63 6f 6c 6f 72 2e 69 73 |if (Dg->|color.is|
|000012d0| 43 61 70 61 62 6c 65 29 | 20 7b 0d 09 09 09 44 67 |Capable)| {....Dg|
|000012e0| 2d 3e 63 6f 6c 6f 72 2e | 68 69 6c 69 74 65 20 3d |->color.|hilite =|
|000012f0| 20 28 2a 28 47 56 61 72 | 48 61 6e 64 6c 65 29 28 | (*(GVar|Handle)(|
|00001300| 28 43 47 72 61 66 50 74 | 72 29 71 64 2e 74 68 65 |(CGrafPt|r)qd.the|
|00001310| 50 6f 72 74 29 2d 3e 67 | 72 61 66 56 61 72 73 29 |Port)->g|rafVars)|
|00001320| 2d 3e 72 67 62 48 69 6c | 69 74 65 43 6f 6c 6f 72 |->rgbHil|iteColor|
|00001330| 3b 7d 0d 09 09 7d 0d 09 | 09 0d 09 6e 6f 64 65 3d |;}...}..|...node=|
|00001340| 47 65 74 44 42 50 74 72 | 46 72 6f 6d 44 42 28 47 |GetDBPtr|FromDB(G|
|00001350| 65 74 44 42 46 72 6f 6d | 57 69 6e 64 6f 77 28 74 |etDBFrom|Window(t|
|00001360| 68 65 57 69 6e 64 6f 77 | 29 2c 20 74 68 65 44 6f |heWindow|), theDo|
|00001370| 63 6b 42 61 72 29 3b 0d | 09 69 66 20 28 6e 6f 64 |ckBar);.|.if (nod|
|00001380| 65 21 3d 30 29 20 7b 0d | 09 09 54 65 78 74 46 6f |e!=0) {.|..TextFo|
|00001390| 6e 74 28 6e 6f 64 65 2d | 3e 73 74 79 6c 65 2e 74 |nt(node-|>style.t|
|000013a0| 78 46 6f 6e 74 29 3b 0d | 09 09 54 65 78 74 46 61 |xFont);.|..TextFa|
|000013b0| 63 65 28 6e 6f 64 65 2d | 3e 73 74 79 6c 65 2e 74 |ce(node-|>style.t|
|000013c0| 78 46 61 63 65 29 3b 0d | 09 09 54 65 78 74 53 69 |xFace);.|..TextSi|
|000013d0| 7a 65 28 6e 6f 64 65 2d | 3e 73 74 79 6c 65 2e 74 |ze(node-|>style.t|
|000013e0| 78 53 69 7a 65 29 3b 0d | 09 09 54 65 78 74 4d 6f |xSize);.|..TextMo|
|000013f0| 64 65 28 6e 6f 64 65 2d | 3e 73 74 79 6c 65 2e 74 |de(node-|>style.t|
|00001400| 78 4d 6f 64 65 29 3b 0d | 09 09 69 66 20 28 66 75 |xMode);.|..if (fu|
|00001410| 6c 6c 29 20 7b 0d 09 09 | 09 47 65 74 46 6f 6e 74 |ll) {...|.GetFont|
|00001420| 49 6e 66 6f 28 26 28 44 | 67 2d 3e 74 65 78 74 49 |Info(&(D|g->textI|
|00001430| 6e 66 6f 29 29 3b 0d 09 | 09 09 44 67 2d 3e 74 65 |nfo));..|..Dg->te|
|00001440| 78 74 49 6e 66 6f 2e 6c | 65 61 64 69 6e 67 20 3d |xtInfo.l|eading =|
|00001450| 20 28 44 67 2d 3e 74 65 | 78 74 49 6e 66 6f 2e 61 | (Dg->te|xtInfo.a|
|00001460| 73 63 65 6e 74 20 2b 20 | 44 67 2d 3e 74 65 78 74 |scent + |Dg->text|
|00001470| 49 6e 66 6f 2e 64 65 73 | 63 65 6e 74 20 2b 20 34 |Info.des|cent + 4|
|00001480| 29 3b 0d 09 09 09 44 67 | 2d 3e 73 61 76 65 4f 72 |);....Dg|->saveOr|
|00001490| 69 67 69 6e 20 3d 20 74 | 68 65 57 69 6e 64 6f 77 |igin = t|heWindow|
|000014a0| 2d 3e 70 6f 72 74 52 65 | 63 74 2e 74 6f 70 3b 0d |->portRe|ct.top;.|
|000014b0| 09 09 09 53 65 74 4f 72 | 69 67 69 6e 28 74 68 65 |...SetOr|igin(the|
|000014c0| 57 69 6e 64 6f 77 2d 3e | 70 6f 72 74 52 65 63 74 |Window->|portRect|
|000014d0| 2e 6c 65 66 74 2c 20 47 | 65 74 44 42 46 72 6f 6d |.left, G|etDBFrom|
|000014e0| 57 69 6e 64 6f 77 28 74 | 68 65 57 69 6e 64 6f 77 |Window(t|heWindow|
|000014f0| 29 2d 3e 6f 66 66 73 65 | 74 29 3b 7d 0d 09 09 7d |)->offse|t);}...}|
|00001500| 0d 09 7d 0d 09 0d 52 65 | 63 74 20 09 09 47 65 74 |..}...Re|ct ..Get|
|00001510| 44 42 52 65 63 74 28 57 | 69 6e 64 6f 77 50 74 72 |DBRect(W|indowPtr|
|00001520| 20 74 68 65 57 69 6e 64 | 6f 77 29 0d 09 7b 0d 09 | theWind|ow)..{..|
|00001530| 52 65 63 74 09 09 09 74 | 68 65 52 65 63 74 3b 0d |Rect...t|heRect;.|
|00001540| 09 44 42 57 69 6e 64 6f | 77 50 74 72 09 74 68 65 |.DBWindo|wPtr.the|
|00001550| 44 42 4c 69 73 74 20 3d | 20 47 65 74 44 42 46 72 |DBList =| GetDBFr|
|00001560| 6f 6d 57 69 6e 64 6f 77 | 28 74 68 65 57 69 6e 64 |omWindow|(theWind|
|00001570| 6f 77 29 3b 0d 09 44 42 | 50 74 72 09 09 74 68 65 |ow);..DB|Ptr..the|
|00001580| 44 6f 63 6b 20 3d 20 74 | 68 65 44 42 4c 69 73 74 |Dock = t|heDBList|
|00001590| 2d 3e 64 6f 63 6b 48 65 | 61 64 3b 0d 09 0d 09 43 |->dockHe|ad;....C|
|000015a0| 6c 65 61 72 52 65 63 74 | 28 26 74 68 65 52 65 63 |learRect|(&theRec|
|000015b0| 74 29 3b 0d 09 77 68 69 | 6c 65 20 28 74 68 65 44 |t);..whi|le (theD|
|000015c0| 6f 63 6b 29 20 7b 0d 09 | 09 69 66 20 28 74 68 65 |ock) {..|.if (the|
|000015d0| 44 6f 63 6b 2d 3e 69 73 | 44 6f 63 6b 65 64 20 26 |Dock->is|Docked &|
|000015e0| 26 20 74 68 65 44 6f 63 | 6b 2d 3e 69 73 56 69 73 |& theDoc|k->isVis|
|000015f0| 69 62 6c 65 29 0d 09 09 | 09 55 6e 69 6f 6e 52 65 |ible)...|.UnionRe|
|00001600| 63 74 28 26 74 68 65 52 | 65 63 74 2c 20 26 74 68 |ct(&theR|ect, &th|
|00001610| 65 44 6f 63 6b 2d 3e 62 | 6f 75 6e 64 73 2c 20 26 |eDock->b|ounds, &|
|00001620| 74 68 65 52 65 63 74 29 | 3b 0d 09 09 74 68 65 44 |theRect)|;...theD|
|00001630| 6f 63 6b 20 3d 20 74 68 | 65 44 6f 63 6b 2d 3e 6e |ock = th|eDock->n|
|00001640| 65 78 74 3b 0d 09 09 7d | 0d 09 74 68 65 52 65 63 |ext;...}|..theRec|
|00001650| 74 2e 72 69 67 68 74 20 | 3d 20 74 68 65 57 69 6e |t.right |= theWin|
|00001660| 64 6f 77 2d 3e 70 6f 72 | 74 52 65 63 74 2e 72 69 |dow->por|tRect.ri|
|00001670| 67 68 74 3b 0d 09 74 68 | 65 52 65 63 74 2e 6c 65 |ght;..th|eRect.le|
|00001680| 66 74 20 3d 20 74 68 65 | 57 69 6e 64 6f 77 2d 3e |ft = the|Window->|
|00001690| 70 6f 72 74 52 65 63 74 | 2e 6c 65 66 74 3b 0d 09 |portRect|.left;..|
|000016a0| 0d 09 72 65 74 75 72 6e | 20 74 68 65 52 65 63 74 |..return| theRect|
|000016b0| 3b 0d 09 7d 0d 09 0d 76 | 6f 69 64 20 09 09 44 42 |;..}...v|oid ..DB|
|000016c0| 44 72 61 77 33 44 52 65 | 63 74 28 52 65 63 74 20 |Draw3DRe|ct(Rect |
|000016d0| 2a 73 75 62 52 65 63 74 | 2c 20 63 68 61 72 20 6d |*subRect|, char m|
|000016e0| 6f 64 65 29 0d 09 7b 0d | 09 65 78 74 65 72 6e 09 |ode)..{.|.extern.|
|000016f0| 44 42 47 6c 6f 62 61 6c | 73 50 74 72 09 44 67 3b |DBGlobal|sPtr.Dg;|
|00001700| 0d 09 52 65 63 74 09 09 | 74 68 65 52 65 63 74 20 |..Rect..|theRect |
|00001710| 3d 20 2a 73 75 62 52 65 | 63 74 3b 0d 0d 09 74 68 |= *subRe|ct;...th|
|00001720| 65 52 65 63 74 2e 74 6f | 70 2d 2d 3b 0d 09 74 68 |eRect.to|p--;..th|
|00001730| 65 52 65 63 74 2e 72 69 | 67 68 74 2b 2b 3b 0d 09 |eRect.ri|ght++;..|
|00001740| 46 72 61 6d 65 52 65 63 | 74 28 26 74 68 65 52 65 |FrameRec|t(&theRe|
|00001750| 63 74 29 3b 0d 09 74 68 | 65 52 65 63 74 2e 74 6f |ct);..th|eRect.to|
|00001760| 70 2b 2b 3b 0d 09 74 68 | 65 52 65 63 74 2e 72 69 |p++;..th|eRect.ri|
|00001770| 67 68 74 2d 2d 3b 0d 09 | 0d 09 74 68 65 52 65 63 |ght--;..|..theRec|
|00001780| 74 2e 62 6f 74 74 6f 6d | 20 2d 3d 32 3b 0d 09 69 |t.bottom| -=2;..i|
|00001790| 66 20 28 44 67 2d 3e 63 | 6f 6c 6f 72 2e 69 73 43 |f (Dg->c|olor.isC|
|000017a0| 61 70 61 62 6c 65 29 20 | 7b 0d 09 09 74 68 65 52 |apable) |{...theR|
|000017b0| 65 63 74 2e 72 69 67 68 | 74 20 2d 3d 20 31 3b 0d |ect.righ|t -= 1;.|
|000017c0| 09 09 74 68 65 52 65 63 | 74 2e 6c 65 66 74 20 2b |..theRec|t.left +|
|000017d0| 3d 20 31 30 3b 0d 09 09 | 69 66 20 28 6d 6f 64 65 |= 10;...|if (mode|
|000017e0| 29 20 7b 0d 09 09 09 52 | 47 42 46 6f 72 65 43 6f |) {....R|GBForeCo|
|000017f0| 6c 6f 72 28 26 44 67 2d | 3e 63 6f 6c 6f 72 2e 68 |lor(&Dg-|>color.h|
|00001800| 69 6c 69 74 65 29 3b 0d | 09 09 09 46 69 6c 6c 52 |ilite);.|...FillR|
|00001810| 65 63 74 28 26 74 68 65 | 52 65 63 74 2c 26 71 64 |ect(&the|Rect,&qd|
|00001820| 2e 62 6c 61 63 6b 29 3b | 0d 09 09 09 52 47 42 46 |.black);|....RGBF|
|00001830| 6f 72 65 43 6f 6c 6f 72 | 28 26 44 67 2d 3e 63 6f |oreColor|(&Dg->co|
|00001840| 6c 6f 72 2e 67 72 61 79 | 29 3b 7d 0d 09 09 65 6c |lor.gray|);}...el|
|00001850| 73 65 20 7b 0d 09 09 09 | 52 47 42 46 6f 72 65 43 |se {....|RGBForeC|
|00001860| 6f 6c 6f 72 28 26 44 67 | 2d 3e 63 6f 6c 6f 72 2e |olor(&Dg|->color.|
|00001870| 6c 69 67 68 74 47 72 61 | 79 29 3b 0d 09 09 09 46 |lightGra|y);....F|
|00001880| 69 6c 6c 52 65 63 74 28 | 26 74 68 65 52 65 63 74 |illRect(|&theRect|
|00001890| 2c 26 71 64 2e 62 6c 61 | 63 6b 29 3b 0d 09 09 09 |,&qd.bla|ck);....|
|000018a0| 46 6f 72 65 43 6f 6c 6f | 72 28 77 68 69 74 65 43 |ForeColo|r(whiteC|
|000018b0| 6f 6c 6f 72 29 3b 7d 0d | 09 09 4d 6f 76 65 54 6f |olor);}.|..MoveTo|
|000018c0| 28 74 68 65 52 65 63 74 | 2e 6c 65 66 74 2c 20 74 |(theRect|.left, t|
|000018d0| 68 65 52 65 63 74 2e 62 | 6f 74 74 6f 6d 29 3b 0d |heRect.b|ottom);.|
|000018e0| 09 09 4c 69 6e 65 54 6f | 28 74 68 65 52 65 63 74 |..LineTo|(theRect|
|000018f0| 2e 6c 65 66 74 2c 20 74 | 68 65 52 65 63 74 2e 74 |.left, t|heRect.t|
|00001900| 6f 70 29 3b 0d 09 09 4c | 69 6e 65 54 6f 28 74 68 |op);...L|ineTo(th|
|00001910| 65 52 65 63 74 2e 72 69 | 67 68 74 2c 20 74 68 65 |eRect.ri|ght, the|
|00001920| 52 65 63 74 2e 74 6f 70 | 29 3b 0d 09 09 69 66 20 |Rect.top|);...if |
|00001930| 28 6d 6f 64 65 29 20 7b | 0d 09 09 09 46 6f 72 65 |(mode) {|....Fore|
|00001940| 43 6f 6c 6f 72 28 77 68 | 69 74 65 43 6f 6c 6f 72 |Color(wh|iteColor|
|00001950| 29 3b 7d 0d 09 09 65 6c | 73 65 20 7b 0d 09 09 09 |);}...el|se {....|
|00001960| 52 47 42 46 6f 72 65 43 | 6f 6c 6f 72 28 26 44 67 |RGBForeC|olor(&Dg|
|00001970| 2d 3e 63 6f 6c 6f 72 2e | 67 72 61 79 29 3b 7d 0d |->color.|gray);}.|
|00001980| 09 09 4c 69 6e 65 54 6f | 28 74 68 65 52 65 63 74 |..LineTo|(theRect|
|00001990| 2e 72 69 67 68 74 2c 74 | 68 65 52 65 63 74 2e 62 |.right,t|heRect.b|
|000019a0| 6f 74 74 6f 6d 29 3b 0d | 09 09 4c 69 6e 65 54 6f |ottom);.|..LineTo|
|000019b0| 28 74 68 65 52 65 63 74 | 2e 6c 65 66 74 2c 74 68 |(theRect|.left,th|
|000019c0| 65 52 65 63 74 2e 62 6f | 74 74 6f 6d 29 3b 0d 2f |eRect.bo|ttom);./|
|000019d0| 2f 09 09 46 6f 72 65 43 | 6f 6c 6f 72 28 62 6c 61 |/..ForeC|olor(bla|
|000019e0| 63 6b 43 6f 6c 6f 72 29 | 3b 0d 2f 2f 09 09 4d 6f |ckColor)|;.//..Mo|
|000019f0| 76 65 54 6f 28 74 68 65 | 52 65 63 74 2e 72 69 67 |veTo(the|Rect.rig|
|00001a00| 68 74 2b 31 2c 74 68 65 | 52 65 63 74 2e 74 6f 70 |ht+1,the|Rect.top|
|00001a10| 29 3b 0d 2f 2f 09 09 4c | 69 6e 65 54 6f 28 74 68 |);.//..L|ineTo(th|
|00001a20| 65 52 65 63 74 2e 72 69 | 67 68 74 2b 31 2c 74 68 |eRect.ri|ght+1,th|
|00001a30| 65 52 65 63 74 2e 62 6f | 74 74 6f 6d 29 3b 0d 09 |eRect.bo|ttom);..|
|00001a40| 09 0d 09 09 74 68 65 52 | 65 63 74 2e 6c 65 66 74 |....theR|ect.left|
|00001a50| 20 2d 3d 20 31 30 3b 0d | 0d 09 09 2f 2f 64 72 61 | -= 10;.|...//dra|
|00001a60| 77 20 74 68 65 20 64 72 | 61 67 20 62 61 72 0d 09 |w the dr|ag bar..|
|00001a70| 09 74 68 65 52 65 63 74 | 2e 6c 65 66 74 2b 2b 3b |.theRect|.left++;|
|00001a80| 0d 09 09 46 6f 72 65 43 | 6f 6c 6f 72 28 77 68 69 |...ForeC|olor(whi|
|00001a90| 74 65 43 6f 6c 6f 72 29 | 3b 0d 09 09 4d 6f 76 65 |teColor)|;...Move|
|00001aa0| 54 6f 28 74 68 65 52 65 | 63 74 2e 6c 65 66 74 2b |To(theRe|ct.left+|
|00001ab0| 32 2c 20 74 68 65 52 65 | 63 74 2e 74 6f 70 2b 31 |2, theRe|ct.top+1|
|00001ac0| 29 3b 0d 09 09 4c 69 6e | 65 54 6f 28 74 68 65 52 |);...Lin|eTo(theR|
|00001ad0| 65 63 74 2e 6c 65 66 74 | 2b 32 2c 20 74 68 65 52 |ect.left|+2, theR|
|00001ae0| 65 63 74 2e 62 6f 74 74 | 6f 6d 2d 32 29 3b 0d 09 |ect.bott|om-2);..|
|00001af0| 09 4d 6f 76 65 54 6f 28 | 74 68 65 52 65 63 74 2e |.MoveTo(|theRect.|
|00001b00| 6c 65 66 74 2b 34 2c 20 | 74 68 65 52 65 63 74 2e |left+4, |theRect.|
|00001b10| 74 6f 70 2b 31 29 3b 0d | 09 09 4c 69 6e 65 54 6f |top+1);.|..LineTo|
|00001b20| 28 74 68 65 52 65 63 74 | 2e 6c 65 66 74 2b 34 2c |(theRect|.left+4,|
|00001b30| 20 74 68 65 52 65 63 74 | 2e 62 6f 74 74 6f 6d 2d | theRect|.bottom-|
|00001b40| 32 29 3b 0d 09 09 52 47 | 42 46 6f 72 65 43 6f 6c |2);...RG|BForeCol|
|00001b50| 6f 72 28 26 44 67 2d 3e | 63 6f 6c 6f 72 2e 67 72 |or(&Dg->|color.gr|
|00001b60| 61 79 29 3b 0d 09 09 4d | 6f 76 65 54 6f 28 74 68 |ay);...M|oveTo(th|
|00001b70| 65 52 65 63 74 2e 6c 65 | 66 74 2b 33 2c 20 74 68 |eRect.le|ft+3, th|
|00001b80| 65 52 65 63 74 2e 74 6f | 70 2b 31 29 3b 0d 09 09 |eRect.to|p+1);...|
|00001b90| 4c 69 6e 65 54 6f 28 74 | 68 65 52 65 63 74 2e 6c |LineTo(t|heRect.l|
|00001ba0| 65 66 74 2b 33 2c 20 74 | 68 65 52 65 63 74 2e 62 |eft+3, t|heRect.b|
|00001bb0| 6f 74 74 6f 6d 2d 32 29 | 3b 0d 09 09 4d 6f 76 65 |ottom-2)|;...Move|
|00001bc0| 54 6f 28 74 68 65 52 65 | 63 74 2e 6c 65 66 74 2b |To(theRe|ct.left+|
|00001bd0| 35 2c 20 74 68 65 52 65 | 63 74 2e 74 6f 70 2b 31 |5, theRe|ct.top+1|
|00001be0| 29 3b 0d 09 09 4c 69 6e | 65 54 6f 28 74 68 65 52 |);...Lin|eTo(theR|
|00001bf0| 65 63 74 2e 6c 65 66 74 | 2b 35 2c 20 74 68 65 52 |ect.left|+5, theR|
|00001c00| 65 63 74 2e 62 6f 74 74 | 6f 6d 2d 32 29 3b 0d 09 |ect.bott|om-2);..|
|00001c10| 09 0d 09 09 46 6f 72 65 | 43 6f 6c 6f 72 28 77 68 |....Fore|Color(wh|
|00001c20| 69 74 65 43 6f 6c 6f 72 | 29 3b 0d 09 09 4d 6f 76 |iteColor|);...Mov|
|00001c30| 65 54 6f 28 74 68 65 52 | 65 63 74 2e 6c 65 66 74 |eTo(theR|ect.left|
|00001c40| 2c 20 74 68 65 52 65 63 | 74 2e 62 6f 74 74 6f 6d |, theRec|t.bottom|
|00001c50| 29 3b 0d 09 09 4c 69 6e | 65 54 6f 28 74 68 65 52 |);...Lin|eTo(theR|
|00001c60| 65 63 74 2e 6c 65 66 74 | 2c 20 74 68 65 52 65 63 |ect.left|, theRec|
|00001c70| 74 2e 74 6f 70 29 3b 0d | 09 09 4c 69 6e 65 54 6f |t.top);.|..LineTo|
|00001c80| 28 74 68 65 52 65 63 74 | 2e 6c 65 66 74 20 2b 20 |(theRect|.left + |
|00001c90| 38 2c 20 74 68 65 52 65 | 63 74 2e 74 6f 70 29 3b |8, theRe|ct.top);|
|00001ca0| 0d 09 09 52 47 42 46 6f | 72 65 43 6f 6c 6f 72 28 |...RGBFo|reColor(|
|00001cb0| 26 44 67 2d 3e 63 6f 6c | 6f 72 2e 67 72 61 79 29 |&Dg->col|or.gray)|
|00001cc0| 3b 0d 09 09 4c 69 6e 65 | 54 6f 28 74 68 65 52 65 |;...Line|To(theRe|
|00001cd0| 63 74 2e 6c 65 66 74 20 | 2b 20 38 2c 74 68 65 52 |ct.left |+ 8,theR|
|00001ce0| 65 63 74 2e 62 6f 74 74 | 6f 6d 29 3b 0d 09 09 4c |ect.bott|om);...L|
|00001cf0| 69 6e 65 54 6f 28 74 68 | 65 52 65 63 74 2e 6c 65 |ineTo(th|eRect.le|
|00001d00| 66 74 2c 74 68 65 52 65 | 63 74 2e 62 6f 74 74 6f |ft,theRe|ct.botto|
|00001d10| 6d 29 3b 0d 09 09 0d 09 | 09 52 47 42 46 6f 72 65 |m);.....|.RGBFore|
|00001d20| 43 6f 6c 6f 72 28 26 44 | 67 2d 3e 63 6f 6c 6f 72 |Color(&D|g->color|
|00001d30| 2e 67 72 61 79 29 3b 0d | 09 09 4d 6f 76 65 54 6f |.gray);.|..MoveTo|
|00001d40| 28 74 68 65 52 65 63 74 | 2e 6c 65 66 74 20 2b 20 |(theRect|.left + |
|00001d50| 38 2c 20 74 68 65 52 65 | 63 74 2e 74 6f 70 29 3b |8, theRe|ct.top);|
|00001d60| 0d 09 09 4c 69 6e 65 54 | 6f 28 74 68 65 52 65 63 |...LineT|o(theRec|
|00001d70| 74 2e 6c 65 66 74 20 2b | 20 38 2c 20 74 68 65 52 |t.left +| 8, theR|
|00001d80| 65 63 74 2e 62 6f 74 74 | 6f 6d 29 3b 0d 09 09 46 |ect.bott|om);...F|
|00001d90| 6f 72 65 43 6f 6c 6f 72 | 28 77 68 69 74 65 43 6f |oreColor|(whiteCo|
|00001da0| 6c 6f 72 29 3b 0d 09 09 | 4d 6f 76 65 54 6f 28 74 |lor);...|MoveTo(t|
|00001db0| 68 65 52 65 63 74 2e 6c | 65 66 74 20 2b 20 31 30 |heRect.l|eft + 10|
|00001dc0| 2c 20 74 68 65 52 65 63 | 74 2e 74 6f 70 29 3b 0d |, theRec|t.top);.|
|00001dd0| 09 09 4c 69 6e 65 54 6f | 28 74 68 65 52 65 63 74 |..LineTo|(theRect|
|00001de0| 2e 6c 65 66 74 20 2b 20 | 31 30 2c 20 74 68 65 52 |.left + |10, theR|
|00001df0| 65 63 74 2e 62 6f 74 74 | 6f 6d 29 3b 0d 09 09 46 |ect.bott|om);...F|
|00001e00| 6f 72 65 43 6f 6c 6f 72 | 28 62 6c 61 63 6b 43 6f |oreColor|(blackCo|
|00001e10| 6c 6f 72 29 3b 0d 09 09 | 4d 6f 76 65 54 6f 28 74 |lor);...|MoveTo(t|
|00001e20| 68 65 52 65 63 74 2e 6c | 65 66 74 20 2b 20 39 2c |heRect.l|eft + 9,|
|00001e30| 20 74 68 65 52 65 63 74 | 2e 74 6f 70 29 3b 0d 09 | theRect|.top);..|
|00001e40| 09 4c 69 6e 65 54 6f 28 | 74 68 65 52 65 63 74 2e |.LineTo(|theRect.|
|00001e50| 6c 65 66 74 20 2b 20 39 | 2c 20 74 68 65 52 65 63 |left + 9|, theRec|
|00001e60| 74 2e 62 6f 74 74 6f 6d | 29 3b 0d 0d 09 09 7d 0d |t.bottom|);....}.|
|00001e70| 09 65 6c 73 65 20 7b 0d | 09 09 74 68 65 52 65 63 |.else {.|..theRec|
|00001e80| 74 2e 62 6f 74 74 6f 6d | 2b 2b 3b 0d 09 09 45 72 |t.bottom|++;...Er|
|00001e90| 61 73 65 52 65 63 74 28 | 26 74 68 65 52 65 63 74 |aseRect(|&theRect|
|00001ea0| 29 3b 0d 09 09 49 6e 73 | 65 74 52 65 63 74 28 26 |);...Ins|etRect(&|
|00001eb0| 74 68 65 52 65 63 74 2c | 20 2d 31 2c 20 2d 31 29 |theRect,| -1, -1)|
|00001ec0| 3b 0d 09 09 46 72 61 6d | 65 52 65 63 74 28 26 74 |;...Fram|eRect(&t|
|00001ed0| 68 65 52 65 63 74 29 3b | 0d 09 09 74 68 65 52 65 |heRect);|...theRe|
|00001ee0| 63 74 2e 72 69 67 68 74 | 2d 3d 32 3b 0d 09 09 74 |ct.right|-=2;...t|
|00001ef0| 68 65 52 65 63 74 2e 6c | 65 66 74 2b 2b 3b 0d 09 |heRect.l|eft++;..|
|00001f00| 09 74 68 65 52 65 63 74 | 2e 74 6f 70 2b 2b 3b 0d |.theRect|.top++;.|
|00001f10| 09 09 74 68 65 52 65 63 | 74 2e 62 6f 74 74 6f 6d |..theRec|t.bottom|
|00001f20| 2d 3d 32 3b 0d 09 09 69 | 66 20 28 21 6d 6f 64 65 |-=2;...i|f (!mode|
|00001f30| 29 20 7b 0d 09 09 09 4d | 6f 76 65 54 6f 28 74 68 |) {....M|oveTo(th|
|00001f40| 65 52 65 63 74 2e 6c 65 | 66 74 20 2b 20 31 2c 20 |eRect.le|ft + 1, |
|00001f50| 74 68 65 52 65 63 74 2e | 62 6f 74 74 6f 6d 29 3b |theRect.|bottom);|
|00001f60| 0d 09 09 09 4c 69 6e 65 | 54 6f 28 74 68 65 52 65 |....Line|To(theRe|
|00001f70| 63 74 2e 72 69 67 68 74 | 2c 20 74 68 65 52 65 63 |ct.right|, theRec|
|00001f80| 74 2e 62 6f 74 74 6f 6d | 29 3b 0d 09 09 09 4c 69 |t.bottom|);....Li|
|00001f90| 6e 65 54 6f 28 74 68 65 | 52 65 63 74 2e 72 69 67 |neTo(the|Rect.rig|
|00001fa0| 68 74 2c 20 74 68 65 52 | 65 63 74 2e 74 6f 70 2b |ht, theR|ect.top+|
|00001fb0| 31 29 3b 7d 0d 09 09 65 | 6c 73 65 20 7b 0d 09 09 |1);}...e|lse {...|
|00001fc0| 09 4d 6f 76 65 54 6f 28 | 74 68 65 52 65 63 74 2e |.MoveTo(|theRect.|
|00001fd0| 6c 65 66 74 2c 20 74 68 | 65 52 65 63 74 2e 62 6f |left, th|eRect.bo|
|00001fe0| 74 74 6f 6d 20 2d 20 31 | 29 3b 0d 09 09 09 4c 69 |ttom - 1|);....Li|
|00001ff0| 6e 65 54 6f 28 74 68 65 | 52 65 63 74 2e 6c 65 66 |neTo(the|Rect.lef|
|00002000| 74 2c 20 74 68 65 52 65 | 63 74 2e 74 6f 70 29 3b |t, theRe|ct.top);|
|00002010| 0d 09 09 09 4c 69 6e 65 | 54 6f 28 74 68 65 52 65 |....Line|To(theRe|
|00002020| 63 74 2e 72 69 67 68 74 | 2d 31 2c 20 74 68 65 52 |ct.right|-1, theR|
|00002030| 65 63 74 2e 74 6f 70 29 | 3b 7d 0d 09 09 7d 0d 09 |ect.top)|;}...}..|
|00002040| 7d 0d 09 0d 63 68 61 72 | 09 57 69 6e 64 6f 77 48 |}...char|.WindowH|
|00002050| 61 73 44 42 28 57 69 6e | 64 6f 77 50 74 72 20 74 |asDB(Win|dowPtr t|
|00002060| 68 65 57 69 6e 64 6f 77 | 29 0d 09 7b 0d 09 65 78 |heWindow|)..{..ex|
|00002070| 74 65 72 6e 20 09 44 42 | 47 6c 6f 62 61 6c 73 50 |tern .DB|GlobalsP|
|00002080| 74 72 20 44 67 3b 0d 0d | 09 69 66 20 28 44 67 21 |tr Dg;..|.if (Dg!|
|00002090| 3d 30 29 20 7b 0d 09 09 | 72 65 74 75 72 6e 20 28 |=0) {...|return (|
|000020a0| 47 65 74 44 42 46 72 6f | 6d 57 69 6e 64 6f 77 28 |GetDBFro|mWindow(|
|000020b0| 74 68 65 57 69 6e 64 6f | 77 29 21 3d 30 29 3b 7d |theWindo|w)!=0);}|
|000020c0| 0d 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|000020d0| 09 7d 0d 09 0d 76 6f 69 | 64 09 44 42 49 6e 73 74 |.}...voi|d.DBInst|
|000020e0| 61 6c 6c 28 57 69 6e 64 | 6f 77 50 74 72 20 74 68 |all(Wind|owPtr th|
|000020f0| 65 57 69 6e 64 6f 77 2c | 20 53 74 72 32 35 35 20 |eWindow,| Str255 |
|00002100| 74 68 65 44 6f 63 6b 42 | 61 72 29 0d 09 7b 0d 09 |theDockB|ar)..{..|
|00002110| 65 78 74 65 72 6e 20 44 | 42 47 6c 6f 62 61 6c 73 |extern D|BGlobals|
|00002120| 50 74 72 20 09 44 67 3b | 0d 09 44 42 50 74 72 09 |Ptr .Dg;|..DBPtr.|
|00002130| 09 09 74 65 6d 70 3b 0d | 09 44 42 57 69 6e 64 6f |..temp;.|.DBWindo|
|00002140| 77 50 74 72 09 09 74 68 | 65 44 42 4c 69 73 74 3b |wPtr..th|eDBList;|
|00002150| 0d 09 73 68 6f 72 74 09 | 09 09 63 6f 75 6e 74 3b |..short.|..count;|
|00002160| 0d 09 0d 09 69 66 20 28 | 44 67 3d 3d 30 29 20 7b |....if (|Dg==0) {|
|00002170| 0d 09 09 44 67 3d 28 44 | 42 47 6c 6f 62 61 6c 73 |...Dg=(D|BGlobals|
|00002180| 50 74 72 29 4e 65 77 50 | 74 72 43 6c 65 61 72 28 |Ptr)NewP|trClear(|
|00002190| 73 69 7a 65 6f 66 28 44 | 42 47 6c 6f 62 61 6c 73 |sizeof(D|BGlobals|
|000021a0| 29 29 3b 0d 09 09 44 67 | 2d 3e 68 65 61 64 3d 30 |));...Dg|->head=0|
|000021b0| 3b 7d 0d 09 09 0d 09 69 | 66 20 28 28 74 68 65 44 |;}.....i|f ((theD|
|000021c0| 42 4c 69 73 74 20 3d 20 | 47 65 74 44 42 46 72 6f |BList = |GetDBFro|
|000021d0| 6d 57 69 6e 64 6f 77 28 | 74 68 65 57 69 6e 64 6f |mWindow(|theWindo|
|000021e0| 77 29 29 20 3d 3d 20 4e | 55 4c 4c 29 20 7b 0d 09 |w)) == N|ULL) {..|
|000021f0| 09 74 68 65 44 42 4c 69 | 73 74 20 3d 20 28 44 42 |.theDBLi|st = (DB|
|00002200| 57 69 6e 64 6f 77 50 74 | 72 29 4e 65 77 50 74 72 |WindowPt|r)NewPtr|
|00002210| 43 6c 65 61 72 28 73 69 | 7a 65 6f 66 28 44 42 57 |Clear(si|zeof(DBW|
|00002220| 69 6e 64 6f 77 44 65 73 | 63 29 29 3b 0d 09 09 74 |indowDes|c));...t|
|00002230| 68 65 44 42 4c 69 73 74 | 2d 3e 77 69 6e 64 6f 77 |heDBList|->window|
|00002240| 20 3d 20 74 68 65 57 69 | 6e 64 6f 77 3b 0d 09 09 | = theWi|ndow;...|
|00002250| 74 68 65 44 42 4c 69 73 | 74 2d 3e 6e 65 78 74 20 |theDBLis|t->next |
|00002260| 3d 20 44 67 2d 3e 68 65 | 61 64 3b 0d 09 09 44 67 |= Dg->he|ad;...Dg|
|00002270| 2d 3e 68 65 61 64 20 3d | 20 74 68 65 44 42 4c 69 |->head =| theDBLi|
|00002280| 73 74 3b 7d 0d 09 09 0d | 09 69 66 20 28 57 69 6e |st;}....|.if (Win|
|00002290| 64 6f 77 48 61 73 44 42 | 28 74 68 65 57 69 6e 64 |dowHasDB|(theWind|
|000022a0| 6f 77 29 20 26 26 20 28 | 74 68 65 57 69 6e 64 6f |ow) && (|theWindo|
|000022b0| 77 21 3d 30 29 29 20 7b | 0d 09 09 74 65 6d 70 3d |w!=0)) {|...temp=|
|000022c0| 28 44 42 50 74 72 29 4e | 65 77 50 74 72 43 6c 65 |(DBPtr)N|ewPtrCle|
|000022d0| 61 72 28 73 69 7a 65 6f | 66 28 44 42 29 29 3b 0d |ar(sizeo|f(DB));.|
|000022e0| 09 09 74 65 6d 70 2d 3e | 6e 65 78 74 3d 74 68 65 |..temp->|next=the|
|000022f0| 44 42 4c 69 73 74 2d 3e | 64 6f 63 6b 48 65 61 64 |DBList->|dockHead|
|00002300| 3b 0d 09 09 74 68 65 44 | 42 4c 69 73 74 2d 3e 64 |;...theD|BList->d|
|00002310| 6f 63 6b 48 65 61 64 3d | 74 65 6d 70 3b 0d 09 09 |ockHead=|temp;...|
|00002320| 0d 09 09 74 65 6d 70 2d | 3e 69 73 56 69 73 69 62 |...temp-|>isVisib|
|00002330| 6c 65 20 3d 20 66 61 6c | 73 65 3b 0d 09 09 74 65 |le = fal|se;...te|
|00002340| 6d 70 2d 3e 69 73 44 6f | 63 6b 65 64 20 3d 20 66 |mp->isDo|cked = f|
|00002350| 61 6c 73 65 3b 0d 09 09 | 74 65 6d 70 2d 3e 73 74 |alse;...|temp->st|
|00002360| 79 6c 65 2e 74 78 46 6f | 6e 74 20 3d 20 33 3b 0d |yle.txFo|nt = 3;.|
|00002370| 09 09 74 65 6d 70 2d 3e | 73 74 79 6c 65 2e 74 78 |..temp->|style.tx|
|00002380| 46 61 63 65 20 3d 20 62 | 6f 6c 64 3b 0d 09 09 74 |Face = b|old;...t|
|00002390| 65 6d 70 2d 3e 73 74 79 | 6c 65 2e 74 78 53 69 7a |emp->sty|le.txSiz|
|000023a0| 65 20 3d 20 39 3b 0d 09 | 09 74 65 6d 70 2d 3e 73 |e = 9;..|.temp->s|
|000023b0| 74 79 6c 65 2e 74 78 4d | 6f 64 65 20 3d 20 73 72 |tyle.txM|ode = sr|
|000023c0| 63 4f 72 3b 0d 09 09 74 | 65 6d 70 2d 3e 77 69 6e |cOr;...t|emp->win|
|000023d0| 64 6f 77 20 3d 20 74 68 | 65 57 69 6e 64 6f 77 3b |dow = th|eWindow;|
|000023e0| 0d 09 09 74 65 6d 70 2d | 3e 6f 75 74 70 75 74 57 |...temp-|>outputW|
|000023f0| 69 6e 64 6f 77 20 3d 20 | 74 68 65 57 69 6e 64 6f |indow = |theWindo|
|00002400| 77 3b 0d 09 09 53 65 74 | 52 65 63 74 28 26 74 65 |w;...Set|Rect(&te|
|00002410| 6d 70 2d 3e 62 6f 75 6e | 64 73 2c 20 2d 31 2c 20 |mp->boun|ds, -1, |
|00002420| 30 2c 20 31 32 2c 20 32 | 30 29 3b 0d 09 09 42 6c |0, 12, 2|0);...Bl|
|00002430| 6f 63 6b 4d 6f 76 65 28 | 74 68 65 44 6f 63 6b 42 |ockMove(|theDockB|
|00002440| 61 72 2c 20 74 65 6d 70 | 2d 3e 72 65 73 4e 61 6d |ar, temp|->resNam|
|00002450| 65 2c 20 32 35 36 29 3b | 0d 09 09 74 65 6d 70 2d |e, 256);|...temp-|
|00002460| 3e 6c 69 73 74 20 3d 20 | 2a 2a 28 28 44 42 4c 69 |>list = |**((DBLi|
|00002470| 73 74 48 61 6e 64 6c 65 | 29 47 65 74 31 4e 61 6d |stHandle|)Get1Nam|
|00002480| 65 64 52 65 73 6f 75 72 | 63 65 28 27 64 6f 63 6b |edResour|ce('dock|
|00002490| 27 2c 20 74 68 65 44 6f | 63 6b 42 61 72 29 29 3b |', theDo|ckBar));|
|000024a0| 0d 09 09 66 6f 72 20 28 | 63 6f 75 6e 74 20 3d 20 |...for (|count = |
|000024b0| 30 3b 20 63 6f 75 6e 74 | 20 3c 20 74 65 6d 70 2d |0; count| < temp-|
|000024c0| 3e 6c 69 73 74 2e 6e 75 | 6d 49 74 65 6d 73 3b 20 |>list.nu|mItems; |
|000024d0| 63 6f 75 6e 74 2b 2b 29 | 0d 09 09 09 74 65 6d 70 |count++)|....temp|
|000024e0| 2d 3e 62 6f 75 6e 64 73 | 2e 72 69 67 68 74 20 2b |->bounds|.right +|
|000024f0| 3d 20 74 65 6d 70 2d 3e | 6c 69 73 74 2e 69 6e 66 |= temp->|list.inf|
|00002500| 6f 5b 63 6f 75 6e 74 5d | 2e 77 69 64 74 68 2b 32 |o[count]|.width+2|
|00002510| 3b 0d 0d 09 09 46 57 41 | 64 64 44 6f 63 6b 69 6e |;....FWA|ddDockin|
|00002520| 67 52 6f 75 74 69 6e 65 | 28 27 44 4f 43 4b 27 2c |gRoutine|('DOCK',|
|00002530| 20 44 42 44 6f 63 6b 46 | 6c 6f 61 74 65 72 29 3b | DBDockF|loater);|
|00002540| 0d 09 09 0d 09 09 44 42 | 53 68 6f 77 48 69 64 65 |......DB|ShowHide|
|00002550| 28 74 68 65 57 69 6e 64 | 6f 77 2c 20 74 68 65 44 |(theWind|ow, theD|
|00002560| 6f 63 6b 42 61 72 2c 20 | 74 72 75 65 29 3b 7d 0d |ockBar, |true);}.|
|00002570| 09 7d 0d 09 0d 76 6f 69 | 64 09 44 42 44 69 73 70 |.}...voi|d.DBDisp|
|00002580| 6f 73 65 28 57 69 6e 64 | 6f 77 50 74 72 20 74 68 |ose(Wind|owPtr th|
|00002590| 65 57 69 6e 64 6f 77 2c | 20 53 74 72 32 35 35 20 |eWindow,| Str255 |
|000025a0| 74 68 65 44 6f 63 6b 42 | 61 72 29 0d 09 7b 0d 09 |theDockB|ar)..{..|
|000025b0| 65 78 74 65 72 6e 20 44 | 42 47 6c 6f 62 61 6c 73 |extern D|BGlobals|
|000025c0| 50 74 72 20 44 67 3b 0d | 09 44 42 57 69 6e 64 6f |Ptr Dg;.|.DBWindo|
|000025d0| 77 50 74 72 09 70 2c 71 | 2c 70 30 3b 0d 09 44 42 |wPtr.p,q|,p0;..DB|
|000025e0| 50 74 72 09 09 64 70 2c | 64 71 2c 64 70 30 3b 0d |Ptr..dp,|dq,dp0;.|
|000025f0| 09 0d 09 69 66 20 28 74 | 68 65 57 69 6e 64 6f 77 |...if (t|heWindow|
|00002600| 21 3d 30 29 20 7b 0d 09 | 09 70 30 3d 44 67 2d 3e |!=0) {..|.p0=Dg->|
|00002610| 68 65 61 64 3b 0d 09 09 | 70 3d 30 3b 0d 09 09 71 |head;...|p=0;...q|
|00002620| 3d 30 3b 0d 09 09 77 68 | 69 6c 65 20 28 70 30 21 |=0;...wh|ile (p0!|
|00002630| 3d 71 29 0d 09 09 09 69 | 66 20 28 70 30 2d 3e 77 |=q)....i|f (p0->w|
|00002640| 69 6e 64 6f 77 20 3d 3d | 20 74 68 65 57 69 6e 64 |indow ==| theWind|
|00002650| 6f 77 29 0d 09 09 09 09 | 71 3d 70 30 3b 0d 09 09 |ow).....|q=p0;...|
|00002660| 09 65 6c 73 65 20 7b 0d | 09 09 09 09 70 3d 70 30 |.else {.|....p=p0|
|00002670| 3b 0d 09 09 09 09 70 30 | 3d 70 30 2d 3e 6e 65 78 |;.....p0|=p0->nex|
|00002680| 74 3b 7d 0d 09 09 69 66 | 20 28 28 70 30 21 3d 30 |t;}...if| ((p0!=0|
|00002690| 29 20 26 26 20 28 70 30 | 3d 3d 71 29 29 20 7b 0d |) && (p0|==q)) {.|
|000026a0| 09 09 09 44 42 53 68 6f | 77 48 69 64 65 28 74 68 |...DBSho|wHide(th|
|000026b0| 65 57 69 6e 64 6f 77 2c | 20 74 68 65 44 6f 63 6b |eWindow,| theDock|
|000026c0| 42 61 72 2c 20 66 61 6c | 73 65 29 3b 0d 0d 09 09 |Bar, fal|se);....|
|000026d0| 09 64 70 30 3d 70 30 2d | 3e 64 6f 63 6b 48 65 61 |.dp0=p0-|>dockHea|
|000026e0| 64 3b 0d 09 09 09 64 70 | 3d 30 3b 0d 09 09 09 64 |d;....dp|=0;....d|
|000026f0| 71 3d 30 3b 0d 0d 09 09 | 09 77 68 69 6c 65 20 28 |q=0;....|.while (|
|00002700| 64 70 30 21 3d 64 71 29 | 0d 09 09 09 09 69 66 20 |dp0!=dq)|.....if |
|00002710| 28 64 70 30 2d 3e 77 69 | 6e 64 6f 77 20 3d 3d 20 |(dp0->wi|ndow == |
|00002720| 74 68 65 57 69 6e 64 6f | 77 29 0d 09 09 09 09 09 |theWindo|w)......|
|00002730| 64 71 3d 64 70 30 3b 0d | 09 09 09 09 65 6c 73 65 |dq=dp0;.|....else|
|00002740| 20 7b 0d 09 09 09 09 09 | 64 70 3d 64 70 30 3b 0d | {......|dp=dp0;.|
|00002750| 09 09 09 09 09 64 70 30 | 3d 64 70 30 2d 3e 6e 65 |.....dp0|=dp0->ne|
|00002760| 78 74 3b 7d 0d 09 09 09 | 69 66 20 28 28 64 70 30 |xt;}....|if ((dp0|
|00002770| 21 3d 30 29 20 26 26 20 | 28 64 70 30 3d 3d 64 71 |!=0) && |(dp0==dq|
|00002780| 29 29 20 7b 0d 09 09 09 | 09 0d 09 09 09 09 69 66 |)) {....|......if|
|00002790| 20 28 64 70 3d 3d 30 29 | 0d 09 09 09 09 09 70 30 | (dp==0)|......p0|
|000027a0| 2d 3e 64 6f 63 6b 48 65 | 61 64 20 3d 20 64 70 30 |->dockHe|ad = dp0|
|000027b0| 2d 3e 6e 65 78 74 3b 0d | 09 09 09 09 65 6c 73 65 |->next;.|....else|
|000027c0| 0d 09 09 09 09 09 64 70 | 2d 3e 6e 65 78 74 20 3d |......dp|->next =|
|000027d0| 20 64 70 30 2d 3e 6e 65 | 78 74 3b 0d 09 09 09 09 | dp0->ne|xt;.....|
|000027e0| 44 69 73 70 6f 73 65 50 | 74 72 28 28 50 74 72 29 |DisposeP|tr((Ptr)|
|000027f0| 64 70 30 29 3b 0d 09 09 | 09 09 09 09 09 09 0d 09 |dp0);...|........|
|00002800| 09 09 09 69 66 20 28 70 | 30 2d 3e 64 6f 63 6b 48 |...if (p|0->dockH|
|00002810| 65 61 64 20 3d 3d 20 4e | 55 4c 4c 29 20 7b 0d 09 |ead == N|ULL) {..|
|00002820| 09 09 09 09 69 66 20 28 | 70 3d 3d 30 29 0d 09 09 |....if (|p==0)...|
|00002830| 09 09 09 09 44 67 2d 3e | 68 65 61 64 20 3d 20 70 |....Dg->|head = p|
|00002840| 30 2d 3e 6e 65 78 74 3b | 0d 09 09 09 09 09 65 6c |0->next;|......el|
|00002850| 73 65 0d 09 09 09 09 09 | 09 70 2d 3e 6e 65 78 74 |se......|.p->next|
|00002860| 20 3d 20 70 30 2d 3e 6e | 65 78 74 3b 0d 09 09 09 | = p0->n|ext;....|
|00002870| 09 09 44 69 73 70 6f 73 | 65 50 74 72 28 28 50 74 |..Dispos|ePtr((Pt|
|00002880| 72 29 70 30 29 3b 7d 0d | 09 09 09 09 7d 0d 09 09 |r)p0);}.|....}...|
|00002890| 09 7d 0d 09 09 7d 0d 09 | 7d 0d 0d 76 6f 69 64 20 |.}...}..|}..void |
|000028a0| 09 09 44 42 49 6e 76 65 | 72 74 28 44 42 50 74 72 |..DBInve|rt(DBPtr|
|000028b0| 20 6e 6f 64 65 2c 20 73 | 68 6f 72 74 20 74 68 65 | node, s|hort the|
|000028c0| 49 74 65 6d 2c 20 73 68 | 6f 72 74 20 69 73 53 65 |Item, sh|ort isSe|
|000028d0| 6c 65 63 74 65 64 29 0d | 09 7b 0d 09 65 78 74 65 |lected).|.{..exte|
|000028e0| 72 6e 20 09 09 44 42 47 | 6c 6f 62 61 6c 73 50 74 |rn ..DBG|lobalsPt|
|000028f0| 72 20 44 67 3b 0d 09 52 | 65 63 74 09 09 09 74 68 |r Dg;..R|ect...th|
|00002900| 65 52 65 63 74 3b 0d 09 | 0d 09 74 68 65 52 65 63 |eRect;..|..theRec|
|00002910| 74 20 3d 20 44 42 47 65 | 74 49 74 65 6d 52 65 63 |t = DBGe|tItemRec|
|00002920| 74 28 6e 6f 64 65 2c 20 | 74 68 65 49 74 65 6d 29 |t(node, |theItem)|
|00002930| 3b 0d 09 0d 09 69 66 20 | 28 21 6e 6f 64 65 2d 3e |;....if |(!node->|
|00002940| 6c 69 73 74 2e 69 6e 66 | 6f 5b 74 68 65 49 74 65 |list.inf|o[theIte|
|00002950| 6d 5d 2e 64 69 73 61 62 | 6c 65 64 20 26 26 20 6e |m].disab|led && n|
|00002960| 6f 64 65 2d 3e 6c 69 73 | 74 2e 69 6e 66 6f 5b 74 |ode->lis|t.info[t|
|00002970| 68 65 49 74 65 6d 5d 2e | 73 65 6c 65 63 74 61 62 |heItem].|selectab|
|00002980| 6c 65 29 0d 09 09 6e 6f | 64 65 2d 3e 6c 69 73 74 |le)...no|de->list|
|00002990| 2e 69 6e 66 6f 5b 74 68 | 65 49 74 65 6d 5d 2e 68 |.info[th|eItem].h|
|000029a0| 69 67 68 6c 69 67 68 74 | 65 64 20 3d 20 69 73 53 |ighlight|ed = isS|
|000029b0| 65 6c 65 63 74 65 64 3b | 0d 09 09 0d 09 44 42 44 |elected;|.....DBD|
|000029c0| 72 61 77 49 74 65 6d 28 | 26 6e 6f 64 65 2d 3e 6c |rawItem(|&node->l|
|000029d0| 69 73 74 2e 69 6e 66 6f | 5b 74 68 65 49 74 65 6d |ist.info|[theItem|
|000029e0| 5d 2c 20 26 74 68 65 52 | 65 63 74 29 3b 0d 09 7d |], &theR|ect);..}|
|000029f0| 0d 09 0d 73 68 6f 72 74 | 20 44 42 43 6c 69 63 6b |...short| DBClick|
|00002a00| 28 57 69 6e 64 6f 77 50 | 74 72 20 74 68 65 57 69 |(WindowP|tr theWi|
|00002a10| 6e 64 6f 77 2c 20 50 6f | 69 6e 74 20 77 68 65 72 |ndow, Po|int wher|
|00002a20| 65 2c 20 4f 53 54 79 70 | 65 20 2a 6b 69 6e 64 29 |e, OSTyp|e *kind)|
|00002a30| 0d 09 7b 0d 09 52 65 63 | 74 09 09 09 74 68 65 52 |..{..Rec|t...theR|
|00002a40| 65 63 74 2c 20 6f 6c 64 | 52 65 63 74 3b 0d 09 44 |ect, old|Rect;..D|
|00002a50| 42 50 74 72 09 09 6e 6f | 64 65 2c 20 74 65 6d 70 |BPtr..no|de, temp|
|00002a60| 3b 0d 09 73 68 6f 72 74 | 09 09 69 6e 73 69 64 65 |;..short|..inside|
|00002a70| 2c 20 74 68 65 49 74 65 | 6d 3b 0d 09 73 68 6f 72 |, theIte|m;..shor|
|00002a80| 74 09 09 73 61 76 65 50 | 6f 73 2c 20 6e 65 65 64 |t..saveP|os, need|
|00002a90| 55 70 64 61 74 65 20 3d | 20 66 61 6c 73 65 2c 20 |Update =| false, |
|00002aa0| 73 61 76 65 48 65 69 67 | 68 74 20 3d 20 44 42 47 |saveHeig|ht = DBG|
|00002ab0| 65 74 48 65 69 67 68 74 | 28 74 68 65 57 69 6e 64 |etHeight|(theWind|
|00002ac0| 6f 77 29 3b 0d 09 50 6f | 69 6e 74 09 09 09 6c 6f |ow);..Po|int...lo|
|00002ad0| 63 61 6c 50 74 20 3d 20 | 77 68 65 72 65 3b 0d 09 |calPt = |where;..|
|00002ae0| 47 57 6f 72 6c 64 50 74 | 72 09 09 74 68 65 47 57 |GWorldPt|r..theGW|
|00002af0| 6f 72 6c 64 2c 20 62 61 | 63 6b 47 57 6f 72 6c 64 |orld, ba|ckGWorld|
|00002b00| 2c 20 6f 75 74 47 57 6f | 72 6c 64 2c 20 63 75 72 |, outGWo|rld, cur|
|00002b10| 50 6f 72 74 3b 0d 09 47 | 44 48 61 6e 64 6c 65 09 |Port;..G|DHandle.|
|00002b20| 09 63 75 72 44 65 76 3b | 0d 09 57 69 6e 64 6f 77 |.curDev;|..Window|
|00002b30| 50 74 72 09 6e 65 77 57 | 69 6e 64 6f 77 3b 0d 09 |Ptr.newW|indow;..|
|00002b40| 53 74 72 32 35 35 09 09 | 74 68 65 44 6f 63 6b 42 |Str255..|theDockB|
|00002b50| 61 72 3b 0d 09 44 42 57 | 69 6e 64 6f 77 50 74 72 |ar;..DBW|indowPtr|
|00002b60| 09 74 68 65 44 42 4c 69 | 73 74 20 3d 20 47 65 74 |.theDBLi|st = Get|
|00002b70| 44 42 46 72 6f 6d 57 69 | 6e 64 6f 77 28 74 68 65 |DBFromWi|ndow(the|
|00002b80| 57 69 6e 64 6f 77 29 3b | 0d 09 09 09 0d 09 53 65 |Window);|......Se|
|00002b90| 74 50 6f 72 74 28 74 68 | 65 57 69 6e 64 6f 77 29 |tPort(th|eWindow)|
|00002ba0| 3b 0d 09 47 6c 6f 62 61 | 6c 54 6f 4c 6f 63 61 6c |;..Globa|lToLocal|
|00002bb0| 28 26 6c 6f 63 61 6c 50 | 74 29 3b 0d 09 69 66 20 |(&localP|t);..if |
|00002bc0| 28 50 74 49 6e 44 42 28 | 74 68 65 57 69 6e 64 6f |(PtInDB(|theWindo|
|00002bd0| 77 2c 77 68 65 72 65 29 | 29 20 7b 0d 09 09 44 42 |w,where)|) {...DB|
|00002be0| 47 65 74 4e 61 6d 65 46 | 72 6f 6d 50 6f 69 6e 74 |GetNameF|romPoint|
|00002bf0| 28 74 68 65 57 69 6e 64 | 6f 77 2c 20 77 68 65 72 |(theWind|ow, wher|
|00002c00| 65 2c 20 26 74 68 65 44 | 6f 63 6b 42 61 72 29 3b |e, &theD|ockBar);|
|00002c10| 0d 09 09 0d 09 09 69 66 | 20 28 74 68 65 44 6f 63 |......if| (theDoc|
|00002c20| 6b 42 61 72 5b 30 5d 20 | 3d 3d 20 30 29 20 72 65 |kBar[0] |== 0) re|
|00002c30| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 09 09 0d 09 |turn fal|se;.....|
|00002c40| 09 6e 6f 64 65 20 3d 20 | 47 65 74 44 42 50 74 72 |.node = |GetDBPtr|
|00002c50| 46 72 6f 6d 44 42 28 47 | 65 74 44 42 46 72 6f 6d |FromDB(G|etDBFrom|
|00002c60| 57 69 6e 64 6f 77 28 74 | 68 65 57 69 6e 64 6f 77 |Window(t|heWindow|
|00002c70| 29 2c 20 74 68 65 44 6f | 63 6b 42 61 72 29 3b 0d |), theDo|ckBar);.|
|00002c80| 09 09 09 0d 09 09 69 66 | 20 28 21 6e 6f 64 65 2d |......if| (!node-|
|00002c90| 3e 69 73 44 6f 63 6b 65 | 64 29 20 72 65 74 75 72 |>isDocke|d) retur|
|00002ca0| 6e 20 66 61 6c 73 65 3b | 0d 09 09 0d 09 09 2f 2f |n false;|......//|
|00002cb0| 70 75 73 68 20 74 68 69 | 73 20 64 6f 63 6b 20 6f |push thi|s dock o|
|00002cc0| 6e 74 6f 20 74 68 65 20 | 73 74 61 72 74 20 6f 66 |nto the |start of|
|00002cd0| 20 74 68 65 20 6c 69 73 | 74 20 28 66 6f 72 20 70 | the lis|t (for p|
|00002ce0| 72 69 6f 72 69 74 79 20 | 6f 76 65 72 20 6f 72 64 |riority |over ord|
|00002cf0| 65 72 69 6e 67 29 0d 09 | 09 74 65 6d 70 20 3d 20 |ering)..|.temp = |
|00002d00| 74 68 65 44 42 4c 69 73 | 74 2d 3e 64 6f 63 6b 48 |theDBLis|t->dockH|
|00002d10| 65 61 64 3b 0d 09 09 69 | 66 20 28 74 65 6d 70 20 |ead;...i|f (temp |
|00002d20| 21 3d 20 6e 6f 64 65 29 | 20 7b 0d 09 09 09 77 68 |!= node)| {....wh|
|00002d30| 69 6c 65 20 28 74 65 6d | 70 29 20 7b 0d 09 09 09 |ile (tem|p) {....|
|00002d40| 09 69 66 20 28 74 65 6d | 70 2d 3e 6e 65 78 74 20 |.if (tem|p->next |
|00002d50| 3d 3d 20 6e 6f 64 65 29 | 0d 09 09 09 09 09 74 65 |== node)|......te|
|00002d60| 6d 70 2d 3e 6e 65 78 74 | 20 3d 20 6e 6f 64 65 2d |mp->next| = node-|
|00002d70| 3e 6e 65 78 74 3b 0d 09 | 09 09 09 74 65 6d 70 20 |>next;..|...temp |
|00002d80| 3d 20 74 65 6d 70 2d 3e | 6e 65 78 74 3b 7d 0d 09 |= temp->|next;}..|
|00002d90| 09 09 6e 6f 64 65 2d 3e | 6e 65 78 74 20 3d 20 74 |..node->|next = t|
|00002da0| 68 65 44 42 4c 69 73 74 | 2d 3e 64 6f 63 6b 48 65 |heDBList|->dockHe|
|00002db0| 61 64 3b 0d 09 09 09 74 | 68 65 44 42 4c 69 73 74 |ad;....t|heDBList|
|00002dc0| 2d 3e 64 6f 63 6b 48 65 | 61 64 20 3d 20 6e 6f 64 |->dockHe|ad = nod|
|00002dd0| 65 3b 7d 0d 09 09 0d 09 | 09 44 42 53 65 74 55 70 |e;}.....|.DBSetUp|
|00002de0| 50 65 6e 53 74 75 66 66 | 28 74 68 65 57 69 6e 64 |PenStuff|(theWind|
|00002df0| 6f 77 2c 20 74 68 65 44 | 6f 63 6b 42 61 72 2c 20 |ow, theD|ockBar, |
|00002e00| 74 72 75 65 29 3b 0d 09 | 09 74 68 65 52 65 63 74 |true);..|.theRect|
|00002e10| 20 3d 20 47 65 74 44 42 | 52 65 63 74 28 74 68 65 | = GetDB|Rect(the|
|00002e20| 57 69 6e 64 6f 77 29 3b | 0d 09 09 69 66 20 28 6e |Window);|...if (n|
|00002e30| 6f 64 65 2d 3e 62 6f 75 | 6e 64 73 2e 6c 65 66 74 |ode->bou|nds.left|
|00002e40| 20 2b 20 31 30 20 3e 3d | 20 6c 6f 63 61 6c 50 74 | + 10 >=| localPt|
|00002e50| 2e 68 29 20 7b 09 0d 09 | 09 09 73 61 76 65 50 6f |.h) {...|..savePo|
|00002e60| 73 20 3d 20 6e 6f 64 65 | 2d 3e 62 6f 75 6e 64 73 |s = node|->bounds|
|00002e70| 2e 72 69 67 68 74 3b 0d | 09 09 09 69 6e 73 69 64 |.right;.|...insid|
|00002e80| 65 20 3d 20 74 72 75 65 | 3b 0d 09 09 09 0d 09 09 |e = true|;.......|
|00002e90| 09 74 68 65 52 65 63 74 | 20 3d 20 47 65 74 44 42 |.theRect| = GetDB|
|00002ea0| 52 65 63 74 28 74 68 65 | 57 69 6e 64 6f 77 29 3b |Rect(the|Window);|
|00002eb0| 0d 09 09 09 74 68 65 52 | 65 63 74 2e 62 6f 74 74 |....theR|ect.bott|
|00002ec0| 6f 6d 20 2d 2d 3b 0d 09 | 09 09 0d 09 09 09 47 65 |om --;..|......Ge|
|00002ed0| 74 47 57 6f 72 6c 64 28 | 26 63 75 72 50 6f 72 74 |tGWorld(|&curPort|
|00002ee0| 2c 20 26 63 75 72 44 65 | 76 29 3b 0d 09 09 09 0d |, &curDe|v);.....|
|00002ef0| 09 09 09 2f 2f 20 63 72 | 65 61 74 65 20 74 68 65 |...// cr|eate the|
|00002f00| 20 6f 66 66 73 63 72 65 | 65 6e 20 77 6f 72 6c 64 | offscre|en world|
|00002f10| 20 66 6f 72 20 62 75 69 | 6c 64 69 6e 67 20 6f 75 | for bui|lding ou|
|00002f20| 74 70 75 74 20 69 6d 61 | 67 65 0d 09 09 09 4e 65 |tput ima|ge....Ne|
|00002f30| 77 47 57 6f 72 6c 64 28 | 26 6f 75 74 47 57 6f 72 |wGWorld(|&outGWor|
|00002f40| 6c 64 2c 20 31 36 2c 20 | 26 74 68 65 52 65 63 74 |ld, 16, |&theRect|
|00002f50| 2c 20 6e 69 6c 2c 20 6e | 69 6c 2c 20 30 29 3b 0d |, nil, n|il, 0);.|
|00002f60| 09 09 09 4c 6f 63 6b 50 | 69 78 65 6c 73 28 6f 75 |...LockP|ixels(ou|
|00002f70| 74 47 57 6f 72 6c 64 2d | 3e 70 6f 72 74 50 69 78 |tGWorld-|>portPix|
|00002f80| 4d 61 70 29 3b 0d 0d 09 | 09 09 2f 2f 20 63 72 65 |Map);...|..// cre|
|00002f90| 61 74 65 20 74 68 65 20 | 6f 66 66 73 63 72 65 65 |ate the |offscree|
|00002fa0| 6e 20 77 6f 72 6c 64 20 | 74 6f 20 63 6f 6e 74 61 |n world |to conta|
|00002fb0| 69 6e 20 74 68 65 20 62 | 61 63 6b 64 72 6f 70 20 |in the b|ackdrop |
|00002fc0| 28 6d 69 6e 75 73 20 64 | 6f 63 6b 29 0d 09 09 09 |(minus d|ock)....|
|00002fd0| 4e 65 77 47 57 6f 72 6c | 64 28 26 62 61 63 6b 47 |NewGWorl|d(&backG|
|00002fe0| 57 6f 72 6c 64 2c 20 31 | 36 2c 20 26 74 68 65 52 |World, 1|6, &theR|
|00002ff0| 65 63 74 2c 20 6e 69 6c | 2c 20 6e 69 6c 2c 20 30 |ect, nil|, nil, 0|
|00003000| 29 3b 0d 09 09 09 4c 6f | 63 6b 50 69 78 65 6c 73 |);....Lo|ckPixels|
|00003010| 28 62 61 63 6b 47 57 6f | 72 6c 64 2d 3e 70 6f 72 |(backGWo|rld->por|
|00003020| 74 50 69 78 4d 61 70 29 | 3b 0d 09 09 09 53 65 74 |tPixMap)|;....Set|
|00003030| 47 57 6f 72 6c 64 28 62 | 61 63 6b 47 57 6f 72 6c |GWorld(b|ackGWorl|
|00003040| 64 2c 20 6e 69 6c 29 3b | 0d 09 09 09 45 72 61 73 |d, nil);|....Eras|
|00003050| 65 52 65 63 74 28 26 62 | 61 63 6b 47 57 6f 72 6c |eRect(&b|ackGWorl|
|00003060| 64 2d 3e 70 6f 72 74 52 | 65 63 74 29 3b 0d 09 09 |d->portR|ect);...|
|00003070| 09 44 42 44 72 61 77 28 | 74 68 65 57 69 6e 64 6f |.DBDraw(|theWindo|
|00003080| 77 2c 20 74 72 75 65 29 | 3b 0d 09 09 09 74 68 65 |w, true)|;....the|
|00003090| 52 65 63 74 20 3d 20 6e | 6f 64 65 2d 3e 62 6f 75 |Rect = n|ode->bou|
|000030a0| 6e 64 73 3b 0d 09 09 09 | 74 68 65 52 65 63 74 2e |nds;....|theRect.|
|000030b0| 74 6f 70 2d 2d 3b 0d 09 | 09 09 74 68 65 52 65 63 |top--;..|..theRec|
|000030c0| 74 2e 72 69 67 68 74 2b | 2b 3b 0d 09 09 09 74 68 |t.right+|+;....th|
|000030d0| 65 52 65 63 74 2e 62 6f | 74 74 6f 6d 2b 2b 3b 0d |eRect.bo|ttom++;.|
|000030e0| 09 09 09 45 72 61 73 65 | 52 65 63 74 28 26 74 68 |...Erase|Rect(&th|
|000030f0| 65 52 65 63 74 29 3b 0d | 09 09 09 50 65 6e 50 61 |eRect);.|...PenPa|
|00003100| 74 28 26 71 64 2e 67 72 | 61 79 29 3b 0d 09 09 09 |t(&qd.gr|ay);....|
|00003110| 74 68 65 52 65 63 74 2e | 62 6f 74 74 6f 6d 2d 2d |theRect.|bottom--|
|00003120| 3b 0d 09 09 09 46 72 61 | 6d 65 52 65 63 74 28 26 |;....Fra|meRect(&|
|00003130| 74 68 65 52 65 63 74 29 | 3b 0d 09 09 09 50 65 6e |theRect)|;....Pen|
|00003140| 50 61 74 28 26 71 64 2e | 62 6c 61 63 6b 29 3b 0d |Pat(&qd.|black);.|
|00003150| 09 09 09 0d 09 09 09 74 | 68 65 52 65 63 74 20 3d |.......t|heRect =|
|00003160| 20 47 65 74 44 42 52 65 | 63 74 28 74 68 65 57 69 | GetDBRe|ct(theWi|
|00003170| 6e 64 6f 77 29 3b 0d 09 | 09 09 74 68 65 52 65 63 |ndow);..|..theRec|
|00003180| 74 2e 72 69 67 68 74 20 | 3d 20 74 68 65 57 69 6e |t.right |= theWin|
|00003190| 64 6f 77 2d 3e 70 6f 72 | 74 52 65 63 74 2e 72 69 |dow->por|tRect.ri|
|000031a0| 67 68 74 3b 0d 09 09 09 | 74 68 65 52 65 63 74 2e |ght;....|theRect.|
|000031b0| 6c 65 66 74 20 3d 20 74 | 68 65 57 69 6e 64 6f 77 |left = t|heWindow|
|000031c0| 2d 3e 70 6f 72 74 52 65 | 63 74 2e 6c 65 66 74 3b |->portRe|ct.left;|
|000031d0| 0d 09 09 09 74 68 65 52 | 65 63 74 2e 62 6f 74 74 |....theR|ect.bott|
|000031e0| 6f 6d 2d 2d 3b 0d 09 09 | 09 49 6e 73 65 74 52 65 |om--;...|.InsetRe|
|000031f0| 63 74 28 26 74 68 65 52 | 65 63 74 2c 20 2d 38 2c |ct(&theR|ect, -8,|
|00003200| 20 2d 38 29 3b 0d 0d 09 | 09 09 2f 2f 20 63 72 65 | -8);...|..// cre|
|00003210| 61 74 65 20 74 68 65 20 | 6f 66 66 73 63 72 65 65 |ate the |offscree|
|00003220| 6e 20 77 6f 72 6c 64 20 | 74 6f 20 63 6f 6e 74 61 |n world |to conta|
|00003230| 69 6e 20 74 68 65 20 64 | 6f 63 6b 20 69 74 73 65 |in the d|ock itse|
|00003240| 6c 66 0d 09 09 09 6f 6c | 64 52 65 63 74 20 3d 20 |lf....ol|dRect = |
|00003250| 6e 6f 64 65 2d 3e 62 6f | 75 6e 64 73 3b 0d 09 09 |node->bo|unds;...|
|00003260| 09 6f 6c 64 52 65 63 74 | 2e 72 69 67 68 74 2b 2b |.oldRect|.right++|
|00003270| 3b 0d 09 09 09 6f 6c 64 | 52 65 63 74 2e 74 6f 70 |;....old|Rect.top|
|00003280| 2d 2d 3b 0d 09 09 09 4e | 65 77 47 57 6f 72 6c 64 |--;....N|ewGWorld|
|00003290| 28 26 74 68 65 47 57 6f | 72 6c 64 2c 20 31 36 2c |(&theGWo|rld, 16,|
|000032a0| 20 26 6f 6c 64 52 65 63 | 74 2c 20 6e 69 6c 2c 20 | &oldRec|t, nil, |
|000032b0| 6e 69 6c 2c 20 30 29 3b | 0d 09 09 09 4c 6f 63 6b |nil, 0);|....Lock|
|000032c0| 50 69 78 65 6c 73 28 74 | 68 65 47 57 6f 72 6c 64 |Pixels(t|heGWorld|
|000032d0| 2d 3e 70 6f 72 74 50 69 | 78 4d 61 70 29 3b 0d 09 |->portPi|xMap);..|
|000032e0| 09 09 53 65 74 47 57 6f | 72 6c 64 28 74 68 65 47 |..SetGWo|rld(theG|
|000032f0| 57 6f 72 6c 64 2c 20 6e | 69 6c 29 3b 0d 09 09 09 |World, n|il);....|
|00003300| 47 65 74 44 42 46 72 6f | 6d 57 69 6e 64 6f 77 28 |GetDBFro|mWindow(|
|00003310| 6e 6f 64 65 2d 3e 77 69 | 6e 64 6f 77 29 2d 3e 77 |node->wi|ndow)->w|
|00003320| 69 6e 64 6f 77 20 3d 20 | 28 57 69 6e 64 6f 77 50 |indow = |(WindowP|
|00003330| 74 72 29 74 68 65 47 57 | 6f 72 6c 64 3b 0d 09 09 |tr)theGW|orld;...|
|00003340| 09 44 42 44 72 61 77 28 | 28 57 69 6e 64 6f 77 50 |.DBDraw(|(WindowP|
|00003350| 74 72 29 74 68 65 47 57 | 6f 72 6c 64 2c 20 74 72 |tr)theGW|orld, tr|
|00003360| 75 65 29 3b 0d 09 09 09 | 47 65 74 44 42 46 72 6f |ue);....|GetDBFro|
|00003370| 6d 57 69 6e 64 6f 77 28 | 28 57 69 6e 64 6f 77 50 |mWindow(|(WindowP|
|00003380| 74 72 29 74 68 65 47 57 | 6f 72 6c 64 29 2d 3e 77 |tr)theGW|orld)->w|
|00003390| 69 6e 64 6f 77 20 3d 20 | 74 68 65 57 69 6e 64 6f |indow = |theWindo|
|000033a0| 77 3b 0d 09 09 09 53 65 | 74 47 57 6f 72 6c 64 28 |w;....Se|tGWorld(|
|000033b0| 63 75 72 50 6f 72 74 2c | 20 63 75 72 44 65 76 29 |curPort,| curDev)|
|000033c0| 3b 0d 09 09 09 0d 09 09 | 09 77 68 69 6c 65 20 28 |;.......|.while (|
|000033d0| 42 75 74 74 6f 6e 28 29 | 29 20 7b 0d 09 09 09 09 |Button()|) {.....|
|000033e0| 47 65 74 4d 6f 75 73 65 | 28 26 77 68 65 72 65 29 |GetMouse|(&where)|
|000033f0| 3b 0d 09 09 09 09 6f 6c | 64 52 65 63 74 20 3d 20 |;.....ol|dRect = |
|00003400| 6e 6f 64 65 2d 3e 62 6f | 75 6e 64 73 3b 0d 09 09 |node->bo|unds;...|
|00003410| 09 09 69 66 20 28 50 74 | 49 6e 52 65 63 74 28 77 |..if (Pt|InRect(w|
|00003420| 68 65 72 65 2c 20 26 74 | 68 65 52 65 63 74 29 29 |here, &t|heRect))|
|00003430| 20 7b 0d 09 09 09 09 09 | 69 6e 73 69 64 65 20 3d | {......|inside =|
|00003440| 20 74 72 75 65 3b 0d 09 | 09 09 09 09 69 66 20 28 | true;..|....if (|
|00003450| 28 6d 69 6e 28 73 61 76 | 65 50 6f 73 20 2d 20 28 |(min(sav|ePos - (|
|00003460| 6c 6f 63 61 6c 50 74 2e | 68 20 2d 20 77 68 65 72 |localPt.|h - wher|
|00003470| 65 2e 68 29 2c 20 74 68 | 65 57 69 6e 64 6f 77 2d |e.h), th|eWindow-|
|00003480| 3e 70 6f 72 74 52 65 63 | 74 2e 72 69 67 68 74 29 |>portRec|t.right)|
|00003490| 20 2d 20 28 6f 6c 64 52 | 65 63 74 2e 72 69 67 68 | - (oldR|ect.righ|
|000034a0| 74 20 2d 20 6f 6c 64 52 | 65 63 74 2e 6c 65 66 74 |t - oldR|ect.left|
|000034b0| 29 29 20 3e 3d 20 2d 31 | 29 20 7b 0d 09 09 09 09 |)) >= -1|) {.....|
|000034c0| 09 09 6e 6f 64 65 2d 3e | 62 6f 75 6e 64 73 2e 72 |..node->|bounds.r|
|000034d0| 69 67 68 74 20 3d 20 6d | 69 6e 28 73 61 76 65 50 |ight = m|in(saveP|
|000034e0| 6f 73 20 2d 20 28 6c 6f | 63 61 6c 50 74 2e 68 20 |os - (lo|calPt.h |
|000034f0| 2d 20 77 68 65 72 65 2e | 68 29 2c 20 20 28 6f 6c |- where.|h), (ol|
|00003500| 64 52 65 63 74 2e 72 69 | 67 68 74 20 2d 20 6f 6c |dRect.ri|ght - ol|
|00003510| 64 52 65 63 74 2e 6c 65 | 66 74 29 20 2b 20 74 68 |dRect.le|ft) + th|
|00003520| 65 57 69 6e 64 6f 77 2d | 3e 70 6f 72 74 52 65 63 |eWindow-|>portRec|
|00003530| 74 2e 72 69 67 68 74 2d | 39 29 3b 0d 09 09 09 09 |t.right-|9);.....|
|00003540| 09 09 6e 6f 64 65 2d 3e | 62 6f 75 6e 64 73 2e 6c |..node->|bounds.l|
|00003550| 65 66 74 20 3d 20 6e 6f | 64 65 2d 3e 62 6f 75 6e |eft = no|de->boun|
|00003560| 64 73 2e 72 69 67 68 74 | 20 2d 20 28 6f 6c 64 52 |ds.right| - (oldR|
|00003570| 65 63 74 2e 72 69 67 68 | 74 20 2d 20 6f 6c 64 52 |ect.righ|t - oldR|
|00003580| 65 63 74 2e 6c 65 66 74 | 29 3b 7d 0d 09 09 09 09 |ect.left|);}.....|
|00003590| 09 65 6c 73 65 20 7b 0d | 09 09 09 09 09 09 2f 2f |.else {.|......//|
|000035a0| 6e 6f 64 65 2d 3e 62 6f | 75 6e 64 73 2e 72 69 67 |node->bo|unds.rig|
|000035b0| 68 74 20 3d 20 73 61 76 | 65 50 6f 73 3b 0d 09 09 |ht = sav|ePos;...|
|000035c0| 09 09 09 09 2f 2f 6e 6f | 64 65 2d 3e 62 6f 75 6e |....//no|de->boun|
|000035d0| 64 73 2e 6c 65 66 74 20 | 3d 20 6e 6f 64 65 2d 3e |ds.left |= node->|
|000035e0| 62 6f 75 6e 64 73 2e 72 | 69 67 68 74 20 2d 20 28 |bounds.r|ight - (|
|000035f0| 6f 6c 64 52 65 63 74 2e | 72 69 67 68 74 20 2d 20 |oldRect.|right - |
|00003600| 6f 6c 64 52 65 63 74 2e | 6c 65 66 74 29 3b 0d 09 |oldRect.|left);..|
|00003610| 09 09 09 09 09 6e 6f 64 | 65 2d 3e 62 6f 75 6e 64 |.....nod|e->bound|
|00003620| 73 2e 6c 65 66 74 20 3d | 20 2d 31 3b 0d 09 09 09 |s.left =| -1;....|
|00003630| 09 09 09 6e 6f 64 65 2d | 3e 62 6f 75 6e 64 73 2e |...node-|>bounds.|
|00003640| 72 69 67 68 74 20 3d 20 | 6e 6f 64 65 2d 3e 62 6f |right = |node->bo|
|00003650| 75 6e 64 73 2e 6c 65 66 | 74 20 2b 20 28 6f 6c 64 |unds.lef|t + (old|
|00003660| 52 65 63 74 2e 72 69 67 | 68 74 20 2d 20 6f 6c 64 |Rect.rig|ht - old|
|00003670| 52 65 63 74 2e 6c 65 66 | 74 29 3b 7d 0d 09 09 09 |Rect.lef|t);}....|
|00003680| 09 09 69 66 20 28 77 68 | 65 72 65 2e 76 20 3c 20 |..if (wh|ere.v < |
|00003690| 6e 6f 64 65 2d 3e 62 6f | 75 6e 64 73 2e 74 6f 70 |node->bo|unds.top|
|000036a0| 20 2d 20 34 29 20 7b 0d | 09 09 09 09 09 09 69 66 | - 4) {.|......if|
|000036b0| 20 28 6e 6f 64 65 2d 3e | 62 6f 75 6e 64 73 2e 74 | (node->|bounds.t|
|000036c0| 6f 70 20 3e 20 31 30 29 | 20 7b 0d 09 09 09 09 09 |op > 10)| {......|
|000036d0| 09 09 6e 6f 64 65 2d 3e | 62 6f 75 6e 64 73 2e 74 |..node->|bounds.t|
|000036e0| 6f 70 20 2d 3d 20 32 30 | 3b 0d 09 09 09 09 09 09 |op -= 20|;.......|
|000036f0| 09 6e 6f 64 65 2d 3e 62 | 6f 75 6e 64 73 2e 62 6f |.node->b|ounds.bo|
|00003700| 74 74 6f 6d 20 2d 3d 20 | 32 30 3b 0d 09 09 09 09 |ttom -= |20;.....|
|00003710| 09 09 09 77 68 65 72 65 | 2e 76 20 2d 3d 20 32 30 |...where|.v -= 20|
|00003720| 3b 0d 09 09 09 09 09 09 | 09 6c 6f 63 61 6c 50 74 |;.......|.localPt|
|00003730| 2e 76 20 2d 3d 20 32 30 | 3b 7d 0d 09 09 09 09 09 |.v -= 20|;}......|
|00003740| 09 7d 0d 09 09 09 09 09 | 65 6c 73 65 20 69 66 20 |.}......|else if |
|00003750| 28 77 68 65 72 65 2e 76 | 20 3e 20 6e 6f 64 65 2d |(where.v| > node-|
|00003760| 3e 62 6f 75 6e 64 73 2e | 62 6f 74 74 6f 6d 20 2b |>bounds.|bottom +|
|00003770| 20 34 29 20 7b 0d 09 09 | 09 09 09 09 69 66 20 28 | 4) {...|....if (|
|00003780| 6e 6f 64 65 2d 3e 62 6f | 75 6e 64 73 2e 62 6f 74 |node->bo|unds.bot|
|00003790| 74 6f 6d 20 3c 20 73 61 | 76 65 48 65 69 67 68 74 |tom < sa|veHeight|
|000037a0| 20 2d 20 31 30 29 20 7b | 0d 09 09 09 09 09 09 09 | - 10) {|........|
|000037b0| 6e 6f 64 65 2d 3e 62 6f | 75 6e 64 73 2e 74 6f 70 |node->bo|unds.top|
|000037c0| 20 2b 3d 20 32 30 3b 0d | 09 09 09 09 09 09 09 6e | += 20;.|.......n|
|000037d0| 6f 64 65 2d 3e 62 6f 75 | 6e 64 73 2e 62 6f 74 74 |ode->bou|nds.bott|
|000037e0| 6f 6d 20 2b 3d 20 32 30 | 3b 0d 09 09 09 09 09 09 |om += 20|;.......|
|000037f0| 09 77 68 65 72 65 2e 76 | 20 2b 3d 20 32 30 3b 0d |.where.v| += 20;.|
|00003800| 09 09 09 09 09 09 09 6c | 6f 63 61 6c 50 74 2e 76 |.......l|ocalPt.v|
|00003810| 20 2b 3d 20 32 30 3b 7d | 0d 09 09 09 09 09 09 7d | += 20;}|.......}|
|00003820| 0d 09 09 09 09 09 7d 0d | 09 09 09 09 65 6c 73 65 |......}.|....else|
|00003830| 20 69 66 20 28 21 50 74 | 49 6e 52 65 63 74 28 77 | if (!Pt|InRect(w|
|00003840| 68 65 72 65 2c 20 26 74 | 68 65 52 65 63 74 29 20 |here, &t|heRect) |
|00003850| 26 26 20 69 6e 73 69 64 | 65 29 20 7b 0d 09 09 09 |&& insid|e) {....|
|00003860| 09 09 69 6e 73 69 64 65 | 20 3d 20 66 61 6c 73 65 |..inside| = false|
|00003870| 3b 0d 09 09 09 09 09 6e | 6f 64 65 2d 3e 62 6f 75 |;......n|ode->bou|
|00003880| 6e 64 73 2e 6c 65 66 74 | 20 3d 20 30 3b 0d 09 09 |nds.left| = 0;...|
|00003890| 09 09 09 6e 6f 64 65 2d | 3e 62 6f 75 6e 64 73 2e |...node-|>bounds.|
|000038a0| 72 69 67 68 74 20 3d 20 | 6e 6f 64 65 2d 3e 62 6f |right = |node->bo|
|000038b0| 75 6e 64 73 2e 6c 65 66 | 74 20 2b 20 28 6f 6c 64 |unds.lef|t + (old|
|000038c0| 52 65 63 74 2e 72 69 67 | 68 74 20 2d 20 6f 6c 64 |Rect.rig|ht - old|
|000038d0| 52 65 63 74 2e 6c 65 66 | 74 29 3b 0d 09 09 09 09 |Rect.lef|t);.....|
|000038e0| 09 53 65 74 50 6f 72 74 | 28 74 68 65 57 69 6e 64 |.SetPort|(theWind|
|000038f0| 6f 77 29 3b 0d 09 09 09 | 09 09 44 42 52 65 73 74 |ow);....|..DBRest|
|00003900| 6f 72 65 50 65 6e 53 74 | 75 66 66 28 74 72 75 65 |orePenSt|uff(true|
|00003910| 29 3b 0d 09 09 09 09 09 | 44 42 53 68 6f 77 48 69 |);......|DBShowHi|
|00003920| 64 65 28 74 68 65 57 69 | 6e 64 6f 77 2c 20 74 68 |de(theWi|ndow, th|
|00003930| 65 44 6f 63 6b 42 61 72 | 2c 20 66 61 6c 73 65 29 |eDockBar|, false)|
|00003940| 3b 0d 09 09 09 09 09 6e | 65 77 57 69 6e 64 6f 77 |;......n|ewWindow|
|00003950| 20 3d 20 46 57 4f 70 65 | 6e 57 69 6e 64 6f 77 28 | = FWOpe|nWindow(|
|00003960| 31 33 31 29 3b 0d 09 09 | 09 09 09 53 65 74 57 69 |131);...|...SetWi|
|00003970| 6e 43 72 65 61 74 6f 72 | 28 6e 65 77 57 69 6e 64 |nCreator|(newWind|
|00003980| 6f 77 2c 20 28 4f 53 54 | 79 70 65 29 74 68 65 57 |ow, (OST|ype)theW|
|00003990| 69 6e 64 6f 77 29 3b 0d | 09 09 09 09 09 53 65 74 |indow);.|.....Set|
|000039a0| 57 69 6e 4b 69 6e 64 28 | 6e 65 77 57 69 6e 64 6f |WinKind(|newWindo|
|000039b0| 77 2c 20 27 44 4f 43 4b | 27 29 3b 0d 09 09 09 09 |w, 'DOCK|');.....|
|000039c0| 09 53 65 74 57 52 65 66 | 43 6f 6e 28 6e 65 77 57 |.SetWRef|Con(newW|
|000039d0| 69 6e 64 6f 77 2c 20 28 | 6c 6f 6e 67 29 6e 6f 64 |indow, (|long)nod|
|000039e0| 65 29 3b 0d 09 09 09 09 | 09 53 69 7a 65 57 69 6e |e);.....|.SizeWin|
|000039f0| 64 6f 77 28 6e 65 77 57 | 69 6e 64 6f 77 2c 20 6e |dow(newW|indow, n|
|00003a00| 6f 64 65 2d 3e 62 6f 75 | 6e 64 73 2e 72 69 67 68 |ode->bou|nds.righ|
|00003a10| 74 20 2d 20 6e 6f 64 65 | 2d 3e 62 6f 75 6e 64 73 |t - node|->bounds|
|00003a20| 2e 6c 65 66 74 20 2d 20 | 31 31 2c 20 6e 6f 64 65 |.left - |11, node|
|00003a30| 2d 3e 62 6f 75 6e 64 73 | 2e 62 6f 74 74 6f 6d 20 |->bounds|.bottom |
|00003a40| 2d 20 6e 6f 64 65 2d 3e | 62 6f 75 6e 64 73 2e 74 |- node->|bounds.t|
|00003a50| 6f 70 2d 31 2c 20 74 72 | 75 65 29 3b 0d 09 09 09 |op-1, tr|ue);....|
|00003a60| 09 09 53 65 74 50 6f 72 | 74 28 6e 65 77 57 69 6e |..SetPor|t(newWin|
|00003a70| 64 6f 77 29 3b 0d 09 09 | 09 09 09 6e 6f 64 65 2d |dow);...|...node-|
|00003a80| 3e 6f 75 74 70 75 74 57 | 69 6e 64 6f 77 20 3d 20 |>outputW|indow = |
|00003a90| 6e 65 77 57 69 6e 64 6f | 77 3b 0d 09 09 09 09 09 |newWindo|w;......|
|00003aa0| 6e 6f 64 65 2d 3e 69 73 | 44 6f 63 6b 65 64 20 3d |node->is|Docked =|
|00003ab0| 20 66 61 6c 73 65 3b 0d | 09 09 09 09 09 6e 6f 64 | false;.|.....nod|
|00003ac0| 65 2d 3e 62 6f 75 6e 64 | 73 2e 62 6f 74 74 6f 6d |e->bound|s.bottom|
|00003ad0| 20 3d 20 6e 6f 64 65 2d | 3e 62 6f 75 6e 64 73 2e | = node-|>bounds.|
|00003ae0| 62 6f 74 74 6f 6d 20 2d | 20 6e 6f 64 65 2d 3e 62 |bottom -| node->b|
|00003af0| 6f 75 6e 64 73 2e 74 6f | 70 3b 0d 09 09 09 09 09 |ounds.to|p;......|
|00003b00| 6e 6f 64 65 2d 3e 62 6f | 75 6e 64 73 2e 74 6f 70 |node->bo|unds.top|
|00003b10| 20 3d 20 30 3b 0d 09 09 | 09 09 09 53 65 74 4f 72 | = 0;...|...SetOr|
|00003b20| 69 67 69 6e 28 31 31 2c | 20 30 29 3b 0d 09 09 09 |igin(11,| 0);....|
|00003b30| 09 09 55 70 64 61 74 65 | 46 6c 6f 61 74 65 72 73 |..Update|Floaters|
|00003b40| 28 29 3b 0d 09 09 09 09 | 09 44 42 55 70 64 61 74 |();.....|.DBUpdat|
|00003b50| 65 28 6e 6f 64 65 2d 3e | 77 69 6e 64 6f 77 29 3b |e(node->|window);|
|00003b60| 0d 09 09 09 09 09 4c 6f | 63 61 6c 54 6f 47 6c 6f |......Lo|calToGlo|
|00003b70| 62 61 6c 28 26 77 68 65 | 72 65 29 3b 0d 09 09 09 |bal(&whe|re);....|
|00003b80| 09 09 46 57 44 72 61 67 | 57 69 6e 64 6f 77 28 6e |..FWDrag|Window(n|
|00003b90| 65 77 57 69 6e 64 6f 77 | 2c 20 77 68 65 72 65 2c |ewWindow|, where,|
|00003ba0| 20 26 71 64 2e 73 63 72 | 65 65 6e 42 69 74 73 2e | &qd.scr|eenBits.|
|00003bb0| 62 6f 75 6e 64 73 29 3b | 0d 09 09 09 09 09 6e 65 |bounds);|......ne|
|00003bc0| 65 64 55 70 64 61 74 65 | 20 3d 20 74 72 75 65 3b |edUpdate| = true;|
|00003bd0| 0d 09 09 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |......re|turn tru|
|00003be0| 65 3b 7d 0d 09 09 09 09 | 69 66 20 28 21 45 71 75 |e;}.....|if (!Equ|
|00003bf0| 61 6c 52 65 63 74 28 26 | 6f 6c 64 52 65 63 74 2c |alRect(&|oldRect,|
|00003c00| 20 26 6e 6f 64 65 2d 3e | 62 6f 75 6e 64 73 29 29 | &node->|bounds))|
|00003c10| 20 7b 0d 09 09 09 09 09 | 6e 6f 64 65 2d 3e 62 6f | {......|node->bo|
|00003c20| 75 6e 64 73 2e 74 6f 70 | 2d 2d 3b 0d 09 09 09 09 |unds.top|--;.....|
|00003c30| 09 6e 6f 64 65 2d 3e 62 | 6f 75 6e 64 73 2e 72 69 |.node->b|ounds.ri|
|00003c40| 67 68 74 2b 2b 3b 0d 09 | 09 09 09 09 43 6f 70 79 |ght++;..|....Copy|
|00003c50| 42 69 74 73 28 26 28 28 | 47 72 61 66 50 74 72 29 |Bits(&((|GrafPtr)|
|00003c60| 62 61 63 6b 47 57 6f 72 | 6c 64 29 2d 3e 70 6f 72 |backGWor|ld)->por|
|00003c70| 74 42 69 74 73 2c 20 26 | 28 28 47 72 61 66 50 74 |tBits, &|((GrafPt|
|00003c80| 72 29 6f 75 74 47 57 6f | 72 6c 64 29 2d 3e 70 6f |r)outGWo|rld)->po|
|00003c90| 72 74 42 69 74 73 2c 20 | 26 28 28 47 72 61 66 50 |rtBits, |&((GrafP|
|00003ca0| 74 72 29 62 61 63 6b 47 | 57 6f 72 6c 64 29 2d 3e |tr)backG|World)->|
|00003cb0| 70 6f 72 74 52 65 63 74 | 2c 20 20 26 28 28 47 72 |portRect|, &((Gr|
|00003cc0| 61 66 50 74 72 29 6f 75 | 74 47 57 6f 72 6c 64 29 |afPtr)ou|tGWorld)|
|00003cd0| 2d 3e 70 6f 72 74 52 65 | 63 74 2c 20 73 72 63 43 |->portRe|ct, srcC|
|00003ce0| 6f 70 79 2c 20 6e 69 6c | 29 3b 0d 09 09 09 09 09 |opy, nil|);......|
|00003cf0| 43 6f 70 79 42 69 74 73 | 28 26 28 28 47 72 61 66 |CopyBits|(&((Graf|
|00003d00| 50 74 72 29 74 68 65 47 | 57 6f 72 6c 64 29 2d 3e |Ptr)theG|World)->|
|00003d10| 70 6f 72 74 42 69 74 73 | 2c 20 26 28 28 47 72 61 |portBits|, &((Gra|
|00003d20| 66 50 74 72 29 6f 75 74 | 47 57 6f 72 6c 64 29 2d |fPtr)out|GWorld)-|
|00003d30| 3e 70 6f 72 74 42 69 74 | 73 2c 20 26 28 28 47 72 |>portBit|s, &((Gr|
|00003d40| 61 66 50 74 72 29 74 68 | 65 47 57 6f 72 6c 64 29 |afPtr)th|eGWorld)|
|00003d50| 2d 3e 70 6f 72 74 52 65 | 63 74 2c 20 20 26 6e 6f |->portRe|ct, &no|
|00003d60| 64 65 2d 3e 62 6f 75 6e | 64 73 2c 20 73 72 63 43 |de->boun|ds, srcC|
|00003d70| 6f 70 79 2c 20 6e 69 6c | 29 3b 0d 09 09 09 09 09 |opy, nil|);......|
|00003d80| 43 6f 70 79 42 69 74 73 | 28 26 28 28 47 72 61 66 |CopyBits|(&((Graf|
|00003d90| 50 74 72 29 6f 75 74 47 | 57 6f 72 6c 64 29 2d 3e |Ptr)outG|World)->|
|00003da0| 70 6f 72 74 42 69 74 73 | 2c 20 26 28 28 47 72 61 |portBits|, &((Gra|
|00003db0| 66 50 74 72 29 74 68 65 | 57 69 6e 64 6f 77 29 2d |fPtr)the|Window)-|
|00003dc0| 3e 70 6f 72 74 42 69 74 | 73 2c 20 26 28 28 47 72 |>portBit|s, &((Gr|
|00003dd0| 61 66 50 74 72 29 6f 75 | 74 47 57 6f 72 6c 64 29 |afPtr)ou|tGWorld)|
|00003de0| 2d 3e 70 6f 72 74 52 65 | 63 74 2c 20 20 26 28 28 |->portRe|ct, &((|
|00003df0| 47 72 61 66 50 74 72 29 | 6f 75 74 47 57 6f 72 6c |GrafPtr)|outGWorl|
|00003e00| 64 29 2d 3e 70 6f 72 74 | 52 65 63 74 2c 20 73 72 |d)->port|Rect, sr|
|00003e10| 63 43 6f 70 79 2c 20 6e | 69 6c 29 3b 0d 09 09 09 |cCopy, n|il);....|
|00003e20| 09 09 6e 6f 64 65 2d 3e | 62 6f 75 6e 64 73 2e 72 |..node->|bounds.r|
|00003e30| 69 67 68 74 2d 2d 3b 0d | 09 09 09 09 09 6e 6f 64 |ight--;.|.....nod|
|00003e40| 65 2d 3e 62 6f 75 6e 64 | 73 2e 74 6f 70 2b 2b 3b |e->bound|s.top++;|
|00003e50| 0d 09 09 09 09 09 6e 65 | 65 64 55 70 64 61 74 65 |......ne|edUpdate|
|00003e60| 20 3d 20 74 72 75 65 3b | 7d 0d 09 09 09 09 7d 0d | = true;|}.....}.|
|00003e70| 09 09 09 55 6e 6c 6f 63 | 6b 50 69 78 65 6c 73 28 |...Unloc|kPixels(|
|00003e80| 74 68 65 47 57 6f 72 6c | 64 2d 3e 70 6f 72 74 50 |theGWorl|d->portP|
|00003e90| 69 78 4d 61 70 29 3b 0d | 09 09 09 55 6e 6c 6f 63 |ixMap);.|...Unloc|
|00003ea0| 6b 50 69 78 65 6c 73 28 | 6f 75 74 47 57 6f 72 6c |kPixels(|outGWorl|
|00003eb0| 64 2d 3e 70 6f 72 74 50 | 69 78 4d 61 70 29 3b 0d |d->portP|ixMap);.|
|00003ec0| 09 09 09 55 6e 6c 6f 63 | 6b 50 69 78 65 6c 73 28 |...Unloc|kPixels(|
|00003ed0| 62 61 63 6b 47 57 6f 72 | 6c 64 2d 3e 70 6f 72 74 |backGWor|ld->port|
|00003ee0| 50 69 78 4d 61 70 29 3b | 0d 09 09 09 44 69 73 70 |PixMap);|....Disp|
|00003ef0| 6f 73 65 47 57 6f 72 6c | 64 28 74 68 65 47 57 6f |oseGWorl|d(theGWo|
|00003f00| 72 6c 64 29 3b 0d 09 09 | 09 44 69 73 70 6f 73 65 |rld);...|.Dispose|
|00003f10| 47 57 6f 72 6c 64 28 6f | 75 74 47 57 6f 72 6c 64 |GWorld(o|utGWorld|
|00003f20| 29 3b 0d 09 09 09 44 69 | 73 70 6f 73 65 47 57 6f |);....Di|sposeGWo|
|00003f30| 72 6c 64 28 62 61 63 6b | 47 57 6f 72 6c 64 29 3b |rld(back|GWorld);|
|00003f40| 0d 09 09 09 7d 0d 09 09 | 65 6c 73 65 20 7b 0d 09 |....}...|else {..|
|00003f50| 09 09 47 65 74 4d 6f 75 | 73 65 28 26 6c 6f 63 61 |..GetMou|se(&loca|
|00003f60| 6c 50 74 29 3b 0d 09 09 | 09 74 68 65 49 74 65 6d |lPt);...|.theItem|
|00003f70| 20 3d 20 44 42 47 65 74 | 49 74 65 6d 41 74 50 6f | = DBGet|ItemAtPo|
|00003f80| 69 6e 74 28 6e 6f 64 65 | 2c 20 6c 6f 63 61 6c 50 |int(node|, localP|
|00003f90| 74 29 3b 0d 09 09 09 69 | 66 20 28 28 74 68 65 49 |t);....i|f ((theI|
|00003fa0| 74 65 6d 20 21 3d 20 2d | 31 29 20 26 26 20 28 21 |tem != -|1) && (!|
|00003fb0| 6e 6f 64 65 2d 3e 6c 69 | 73 74 2e 69 6e 66 6f 5b |node->li|st.info[|
|00003fc0| 74 68 65 49 74 65 6d 5d | 2e 64 69 73 61 62 6c 65 |theItem]|.disable|
|00003fd0| 64 20 26 26 20 6e 6f 64 | 65 2d 3e 6c 69 73 74 2e |d && nod|e->list.|
|00003fe0| 69 6e 66 6f 5b 74 68 65 | 49 74 65 6d 5d 2e 73 65 |info[the|Item].se|
|00003ff0| 6c 65 63 74 61 62 6c 65 | 29 29 20 7b 0d 09 09 09 |lectable|)) {....|
|00004000| 09 74 68 65 52 65 63 74 | 20 3d 20 44 42 47 65 74 |.theRect| = DBGet|
|00004010| 49 74 65 6d 52 65 63 74 | 28 6e 6f 64 65 2c 20 74 |ItemRect|(node, t|
|00004020| 68 65 49 74 65 6d 29 3b | 0d 09 09 09 09 44 42 49 |heItem);|.....DBI|
|00004030| 6e 76 65 72 74 28 6e 6f | 64 65 2c 20 74 68 65 49 |nvert(no|de, theI|
|00004040| 74 65 6d 2c 20 74 72 75 | 65 29 3b 0d 09 09 09 09 |tem, tru|e);.....|
|00004050| 69 6e 73 69 64 65 20 3d | 20 74 72 75 65 3b 0d 09 |inside =| true;..|
|00004060| 09 09 09 77 68 69 6c 65 | 20 28 42 75 74 74 6f 6e |...while| (Button|
|00004070| 28 29 29 20 7b 0d 09 09 | 09 09 09 47 65 74 4d 6f |()) {...|...GetMo|
|00004080| 75 73 65 28 26 6c 6f 63 | 61 6c 50 74 29 3b 0d 09 |use(&loc|alPt);..|
|00004090| 09 09 09 09 69 66 20 28 | 50 74 49 6e 52 65 63 74 |....if (|PtInRect|
|000040a0| 28 6c 6f 63 61 6c 50 74 | 2c 20 26 74 68 65 52 65 |(localPt|, &theRe|
|000040b0| 63 74 29 20 26 26 20 21 | 69 6e 73 69 64 65 29 20 |ct) && !|inside) |
|000040c0| 7b 0d 09 09 09 09 09 09 | 69 6e 73 69 64 65 20 3d |{.......|inside =|
|000040d0| 20 74 72 75 65 3b 0d 09 | 09 09 09 09 09 44 42 49 | true;..|.....DBI|
|000040e0| 6e 76 65 72 74 28 6e 6f | 64 65 2c 20 74 68 65 49 |nvert(no|de, theI|
|000040f0| 74 65 6d 2c 20 74 72 75 | 65 29 3b 7d 0d 09 09 09 |tem, tru|e);}....|
|00004100| 09 09 65 6c 73 65 20 69 | 66 20 28 21 50 74 49 6e |..else i|f (!PtIn|
|00004110| 52 65 63 74 28 6c 6f 63 | 61 6c 50 74 2c 20 26 74 |Rect(loc|alPt, &t|
|00004120| 68 65 52 65 63 74 29 20 | 26 26 20 69 6e 73 69 64 |heRect) |&& insid|
|00004130| 65 29 20 7b 0d 09 09 09 | 09 09 09 69 6e 73 69 64 |e) {....|...insid|
|00004140| 65 20 3d 20 66 61 6c 73 | 65 3b 0d 09 09 09 09 09 |e = fals|e;......|
|00004150| 09 44 42 49 6e 76 65 72 | 74 28 6e 6f 64 65 2c 20 |.DBInver|t(node, |
|00004160| 74 68 65 49 74 65 6d 2c | 20 66 61 6c 73 65 29 3b |theItem,| false);|
|00004170| 7d 0d 09 09 09 09 09 7d | 3b 0d 09 09 09 09 69 66 |}......}|;.....if|
|00004180| 20 28 69 6e 73 69 64 65 | 29 20 7b 0d 09 09 09 09 | (inside|) {.....|
|00004190| 09 44 42 49 6e 76 65 72 | 74 28 6e 6f 64 65 2c 20 |.DBInver|t(node, |
|000041a0| 74 68 65 49 74 65 6d 2c | 20 66 61 6c 73 65 29 3b |theItem,| false);|
|000041b0| 0d 09 09 09 09 09 2a 6b | 69 6e 64 20 3d 20 6e 6f |......*k|ind = no|
|000041c0| 64 65 2d 3e 6c 69 73 74 | 2e 69 6e 66 6f 5b 74 68 |de->list|.info[th|
|000041d0| 65 49 74 65 6d 5d 2e 61 | 63 74 69 6f 6e 3b 0d 09 |eItem].a|ction;..|
|000041e0| 09 09 09 09 7d 0d 09 09 | 09 09 7d 0d 09 09 09 7d |....}...|..}....}|
|000041f0| 0d 09 09 44 42 52 65 73 | 74 6f 72 65 50 65 6e 53 |...DBRes|torePenS|
|00004200| 74 75 66 66 28 74 72 75 | 65 29 3b 0d 09 09 69 66 |tuff(tru|e);...if|
|00004210| 20 28 6e 65 65 64 55 70 | 64 61 74 65 29 0d 09 09 | (needUp|date)...|
|00004220| 09 44 42 44 72 61 77 28 | 74 68 65 57 69 6e 64 6f |.DBDraw(|theWindo|
|00004230| 77 2c 20 66 61 6c 73 65 | 29 3b 0d 09 09 7d 0d 09 |w, false|);...}..|
|00004240| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 09 7d |return f|alse;..}|
|00004250| 0d 0d 76 6f 69 64 09 44 | 42 44 72 61 77 28 57 69 |..void.D|BDraw(Wi|
|00004260| 6e 64 6f 77 50 74 72 20 | 74 68 65 57 69 6e 64 6f |ndowPtr |theWindo|
|00004270| 77 2c 20 73 68 6f 72 74 | 20 66 75 6c 6c 29 0d 09 |w, short| full)..|
|00004280| 7b 0d 09 65 78 74 65 72 | 6e 20 09 09 44 42 47 6c |{..exter|n ..DBGl|
|00004290| 6f 62 61 6c 73 50 74 72 | 20 44 67 3b 0d 09 44 42 |obalsPtr| Dg;..DB|
|000042a0| 57 69 6e 64 6f 77 50 74 | 72 09 74 68 65 44 42 4c |WindowPt|r.theDBL|
|000042b0| 69 73 74 20 3d 20 47 65 | 74 44 42 46 72 6f 6d 57 |ist = Ge|tDBFromW|
|000042c0| 69 6e 64 6f 77 28 74 68 | 65 57 69 6e 64 6f 77 29 |indow(th|eWindow)|
|000042d0| 3b 0d 09 44 42 50 74 72 | 09 09 6e 6f 64 65 3b 0d |;..DBPtr|..node;.|
|000042e0| 09 52 65 63 74 09 09 09 | 74 68 65 52 65 63 74 3b |.Rect...|theRect;|
|000042f0| 0d 09 73 68 6f 72 74 09 | 09 63 6f 75 6e 74 2c 20 |..short.|.count, |
|00004300| 66 69 72 73 74 74 69 6d | 65 20 3d 20 74 72 75 65 |firsttim|e = true|
|00004310| 3b 0d 09 0d 09 69 66 20 | 28 21 66 75 6c 6c 29 0d |;....if |(!full).|
|00004320| 09 09 44 42 55 70 64 61 | 74 65 28 74 68 65 57 69 |..DBUpda|te(theWi|
|00004330| 6e 64 6f 77 29 3b 0d 09 | 69 66 20 28 74 68 65 44 |ndow);..|if (theD|
|00004340| 42 4c 69 73 74 29 20 7b | 0d 09 09 6e 6f 64 65 20 |BList) {|...node |
|00004350| 3d 20 74 68 65 44 42 4c | 69 73 74 2d 3e 64 6f 63 |= theDBL|ist->doc|
|00004360| 6b 48 65 61 64 3b 0d 09 | 09 77 68 69 6c 65 28 6e |kHead;..|.while(n|
|00004370| 6f 64 65 29 20 7b 0d 09 | 09 09 69 66 20 28 6e 6f |ode) {..|..if (no|
|00004380| 64 65 2d 3e 69 73 56 69 | 73 69 62 6c 65 20 26 26 |de->isVi|sible &&|
|00004390| 20 6e 6f 64 65 2d 3e 69 | 73 44 6f 63 6b 65 64 29 | node->i|sDocked)|
|000043a0| 20 7b 0d 09 09 09 09 44 | 42 53 65 74 55 70 50 65 | {.....D|BSetUpPe|
|000043b0| 6e 53 74 75 66 66 28 74 | 68 65 57 69 6e 64 6f 77 |nStuff(t|heWindow|
|000043c0| 2c 20 6e 6f 64 65 2d 3e | 72 65 73 4e 61 6d 65 2c |, node->|resName,|
|000043d0| 20 21 66 75 6c 6c 29 3b | 0d 09 09 09 09 69 66 20 | !full);|.....if |
|000043e0| 28 66 69 72 73 74 74 69 | 6d 65 29 20 7b 0d 09 09 |(firstti|me) {...|
|000043f0| 09 2f 2f 45 72 61 73 65 | 20 74 68 65 20 62 61 63 |.//Erase| the bac|
|00004400| 6b 67 72 6f 75 6e 64 0d | 09 09 09 09 09 74 68 65 |kground.|.....the|
|00004410| 52 65 63 74 20 3d 20 47 | 65 74 44 42 52 65 63 74 |Rect = G|etDBRect|
|00004420| 28 74 68 65 57 69 6e 64 | 6f 77 29 3b 0d 09 09 09 |(theWind|ow);....|
|00004430| 09 09 74 68 65 52 65 63 | 74 2e 62 6f 74 74 6f 6d |..theRec|t.bottom|
|00004440| 2d 2d 3b 0d 09 09 09 09 | 09 45 72 61 73 65 52 65 |--;.....|.EraseRe|
|00004450| 63 74 28 26 74 68 65 52 | 65 63 74 29 3b 0d 09 09 |ct(&theR|ect);...|
|00004460| 09 09 09 66 69 72 73 74 | 74 69 6d 65 20 3d 20 66 |...first|time = f|
|00004470| 61 6c 73 65 3b 0d 09 09 | 09 2f 2f 44 72 61 77 20 |alse;...|.//Draw |
|00004480| 74 68 65 20 64 69 76 69 | 64 65 72 20 62 61 72 0d |the divi|der bar.|
|00004490| 09 09 09 09 09 4d 6f 76 | 65 54 6f 28 30 2c 20 74 |.....Mov|eTo(0, t|
|000044a0| 68 65 52 65 63 74 2e 62 | 6f 74 74 6f 6d 29 3b 0d |heRect.b|ottom);.|
|000044b0| 09 09 09 09 09 4c 69 6e | 65 54 6f 28 74 68 65 57 |.....Lin|eTo(theW|
|000044c0| 69 6e 64 6f 77 2d 3e 70 | 6f 72 74 52 65 63 74 2e |indow->p|ortRect.|
|000044d0| 72 69 67 68 74 2c 20 74 | 68 65 52 65 63 74 2e 62 |right, t|heRect.b|
|000044e0| 6f 74 74 6f 6d 29 3b 7d | 0d 09 09 09 2f 2f 44 72 |ottom);}|....//Dr|
|000044f0| 61 77 20 74 68 65 20 6f | 75 74 65 72 20 62 61 63 |aw the o|uter bac|
|00004500| 6b 67 72 6f 75 6e 64 0d | 09 09 09 09 69 66 20 28 |kground.|....if (|
|00004510| 44 67 2d 3e 63 6f 6c 6f | 72 2e 69 73 43 61 70 61 |Dg->colo|r.isCapa|
|00004520| 62 6c 65 29 0d 09 09 09 | 09 09 52 47 42 42 61 63 |ble)....|..RGBBac|
|00004530| 6b 43 6f 6c 6f 72 28 26 | 44 67 2d 3e 63 6f 6c 6f |kColor(&|Dg->colo|
|00004540| 72 2e 6c 69 67 68 74 47 | 72 61 79 29 3b 0d 09 09 |r.lightG|ray);...|
|00004550| 09 09 6e 6f 64 65 2d 3e | 62 6f 75 6e 64 73 2e 62 |..node->|bounds.b|
|00004560| 6f 74 74 6f 6d 2d 2d 3b | 0d 09 09 09 09 45 72 61 |ottom--;|.....Era|
|00004570| 73 65 52 65 63 74 28 26 | 6e 6f 64 65 2d 3e 62 6f |seRect(&|node->bo|
|00004580| 75 6e 64 73 29 3b 0d 09 | 09 09 09 6e 6f 64 65 2d |unds);..|...node-|
|00004590| 3e 62 6f 75 6e 64 73 2e | 62 6f 74 74 6f 6d 2b 2b |>bounds.|bottom++|
|000045a0| 3b 0d 0d 09 09 09 2f 2f | 44 72 61 77 20 74 68 65 |;.....//|Draw the|
|000045b0| 20 61 63 74 75 61 6c 20 | 68 65 6c 70 62 61 72 20 | actual |helpbar |
|000045c0| 69 74 73 65 6c 66 09 09 | 0d 09 09 09 09 44 42 44 |itself..|.....DBD|
|000045d0| 72 61 77 33 44 52 65 63 | 74 28 26 6e 6f 64 65 2d |raw3DRec|t(&node-|
|000045e0| 3e 62 6f 75 6e 64 73 2c | 20 66 61 6c 73 65 29 3b |>bounds,| false);|
|000045f0| 0d 09 09 09 09 0d 09 09 | 09 2f 2f 44 72 61 77 20 |........|.//Draw |
|00004600| 74 68 65 20 61 63 74 75 | 61 6c 20 69 74 65 6d 73 |the actu|al items|
|00004610| 20 74 68 65 6d 73 65 6c | 76 65 73 0d 09 09 09 09 | themsel|ves.....|
|00004620| 74 68 65 52 65 63 74 20 | 3d 20 6e 6f 64 65 2d 3e |theRect |= node->|
|00004630| 62 6f 75 6e 64 73 3b 0d | 09 09 09 09 49 6e 73 65 |bounds;.|....Inse|
|00004640| 74 52 65 63 74 28 26 74 | 68 65 52 65 63 74 2c 20 |tRect(&t|heRect, |
|00004650| 31 2c 20 31 29 3b 0d 09 | 09 09 09 74 68 65 52 65 |1, 1);..|...theRe|
|00004660| 63 74 2e 6c 65 66 74 20 | 2b 3d 20 31 32 3b 0d 09 |ct.left |+= 12;..|
|00004670| 09 09 09 74 68 65 52 65 | 63 74 2e 62 6f 74 74 6f |...theRe|ct.botto|
|00004680| 6d 20 2d 2d 3b 0d 09 09 | 09 09 66 6f 72 20 28 63 |m --;...|..for (c|
|00004690| 6f 75 6e 74 20 3d 20 30 | 3b 20 63 6f 75 6e 74 20 |ount = 0|; count |
|000046a0| 3c 20 6e 6f 64 65 2d 3e | 6c 69 73 74 2e 6e 75 6d |< node->|list.num|
|000046b0| 49 74 65 6d 73 3b 20 63 | 6f 75 6e 74 2b 2b 29 20 |Items; c|ount++) |
|000046c0| 7b 0d 09 09 09 09 09 74 | 68 65 52 65 63 74 2e 72 |{......t|heRect.r|
|000046d0| 69 67 68 74 20 3d 20 74 | 68 65 52 65 63 74 2e 6c |ight = t|heRect.l|
|000046e0| 65 66 74 20 2b 20 6e 6f | 64 65 2d 3e 6c 69 73 74 |eft + no|de->list|
|000046f0| 2e 69 6e 66 6f 5b 63 6f | 75 6e 74 5d 2e 77 69 64 |.info[co|unt].wid|
|00004700| 74 68 3b 0d 09 09 09 09 | 09 44 42 44 72 61 77 49 |th;.....|.DBDrawI|
|00004710| 74 65 6d 28 26 6e 6f 64 | 65 2d 3e 6c 69 73 74 2e |tem(&nod|e->list.|
|00004720| 69 6e 66 6f 5b 63 6f 75 | 6e 74 5d 2c 20 26 74 68 |info[cou|nt], &th|
|00004730| 65 52 65 63 74 29 3b 0d | 09 09 09 09 09 74 68 65 |eRect);.|.....the|
|00004740| 52 65 63 74 2e 6c 65 66 | 74 20 3d 20 74 68 65 52 |Rect.lef|t = theR|
|00004750| 65 63 74 2e 72 69 67 68 | 74 20 2b 20 32 3b 0d 09 |ect.righ|t + 2;..|
|00004760| 09 09 09 09 7d 0d 09 09 | 09 09 0d 09 09 09 09 44 |....}...|.......D|
|00004770| 42 52 65 73 74 6f 72 65 | 50 65 6e 53 74 75 66 66 |BRestore|PenStuff|
|00004780| 28 21 66 75 6c 6c 29 3b | 7d 0d 09 09 09 6e 6f 64 |(!full);|}....nod|
|00004790| 65 20 3d 20 6e 6f 64 65 | 2d 3e 6e 65 78 74 3b 0d |e = node|->next;.|
|000047a0| 09 09 09 7d 0d 09 09 7d | 0d 09 7d 0d 0d 73 68 6f |...}...}|..}..sho|
|000047b0| 72 74 20 44 42 47 65 74 | 49 74 65 6d 41 74 50 6f |rt DBGet|ItemAtPo|
|000047c0| 69 6e 74 28 44 42 50 74 | 72 20 6e 6f 64 65 2c 20 |int(DBPt|r node, |
|000047d0| 50 6f 69 6e 74 20 6c 6f | 63 61 6c 50 74 29 20 7b |Point lo|calPt) {|
|000047e0| 0d 09 52 65 63 74 09 09 | 74 68 65 52 65 63 74 20 |..Rect..|theRect |
|000047f0| 3d 20 6e 6f 64 65 2d 3e | 62 6f 75 6e 64 73 3b 0d |= node->|bounds;.|
|00004800| 09 73 68 6f 72 74 09 63 | 6f 75 6e 74 3b 0d 09 0d |.short.c|ount;...|
|00004810| 09 49 6e 73 65 74 52 65 | 63 74 28 26 74 68 65 52 |.InsetRe|ct(&theR|
|00004820| 65 63 74 2c 20 31 2c 20 | 31 29 3b 0d 09 74 68 65 |ect, 1, |1);..the|
|00004830| 52 65 63 74 2e 6c 65 66 | 74 20 2b 3d 20 31 32 3b |Rect.lef|t += 12;|
|00004840| 0d 09 74 68 65 52 65 63 | 74 2e 62 6f 74 74 6f 6d |..theRec|t.bottom|
|00004850| 20 2d 2d 3b 0d 09 66 6f | 72 20 28 63 6f 75 6e 74 | --;..fo|r (count|
|00004860| 20 3d 20 30 3b 20 63 6f | 75 6e 74 20 3c 20 6e 6f | = 0; co|unt < no|
|00004870| 64 65 2d 3e 6c 69 73 74 | 2e 6e 75 6d 49 74 65 6d |de->list|.numItem|
|00004880| 73 3b 20 63 6f 75 6e 74 | 2b 2b 29 20 7b 0d 09 09 |s; count|++) {...|
|00004890| 74 68 65 52 65 63 74 2e | 72 69 67 68 74 20 3d 20 |theRect.|right = |
|000048a0| 74 68 65 52 65 63 74 2e | 6c 65 66 74 20 2b 20 6e |theRect.|left + n|
|000048b0| 6f 64 65 2d 3e 6c 69 73 | 74 2e 69 6e 66 6f 5b 63 |ode->lis|t.info[c|
|000048c0| 6f 75 6e 74 5d 2e 77 69 | 64 74 68 3b 0d 09 09 69 |ount].wi|dth;...i|
|000048d0| 66 20 28 50 74 49 6e 52 | 65 63 74 28 6c 6f 63 61 |f (PtInR|ect(loca|
|000048e0| 6c 50 74 2c 20 26 74 68 | 65 52 65 63 74 29 29 20 |lPt, &th|eRect)) |
|000048f0| 72 65 74 75 72 6e 20 63 | 6f 75 6e 74 3b 0d 09 09 |return c|ount;...|
|00004900| 74 68 65 52 65 63 74 2e | 6c 65 66 74 20 3d 20 74 |theRect.|left = t|
|00004910| 68 65 52 65 63 74 2e 72 | 69 67 68 74 20 2b 20 32 |heRect.r|ight + 2|
|00004920| 3b 7d 0d 09 09 0d 09 72 | 65 74 75 72 6e 20 2d 31 |;}.....r|eturn -1|
|00004930| 3b 0d 7d 0d 0d 52 65 63 | 74 09 44 42 47 65 74 49 |;.}..Rec|t.DBGetI|
|00004940| 74 65 6d 52 65 63 74 28 | 44 42 50 74 72 20 6e 6f |temRect(|DBPtr no|
|00004950| 64 65 2c 20 73 68 6f 72 | 74 20 74 68 65 49 74 65 |de, shor|t theIte|
|00004960| 6d 29 20 7b 0d 09 52 65 | 63 74 09 09 74 68 65 52 |m) {..Re|ct..theR|
|00004970| 65 63 74 20 3d 20 6e 6f | 64 65 2d 3e 62 6f 75 6e |ect = no|de->boun|
|00004980| 64 73 3b 0d 09 73 68 6f | 72 74 20 09 63 6f 75 6e |ds;..sho|rt .coun|
|00004990| 74 3b 0d 09 0d 09 49 6e | 73 65 74 52 65 63 74 28 |t;....In|setRect(|
|000049a0| 26 74 68 65 52 65 63 74 | 2c 20 31 2c 20 31 29 3b |&theRect|, 1, 1);|
|000049b0| 0d 09 74 68 65 52 65 63 | 74 2e 6c 65 66 74 20 2b |..theRec|t.left +|
|000049c0| 3d 20 31 32 3b 0d 09 74 | 68 65 52 65 63 74 2e 62 |= 12;..t|heRect.b|
|000049d0| 6f 74 74 6f 6d 20 2d 2d | 3b 0d 09 66 6f 72 20 28 |ottom --|;..for (|
|000049e0| 63 6f 75 6e 74 20 3d 20 | 30 3b 20 63 6f 75 6e 74 |count = |0; count|
|000049f0| 20 3c 20 6e 6f 64 65 2d | 3e 6c 69 73 74 2e 6e 75 | < node-|>list.nu|
|00004a00| 6d 49 74 65 6d 73 3b 20 | 63 6f 75 6e 74 2b 2b 29 |mItems; |count++)|
|00004a10| 20 7b 0d 09 09 74 68 65 | 52 65 63 74 2e 72 69 67 | {...the|Rect.rig|
|00004a20| 68 74 20 3d 20 74 68 65 | 52 65 63 74 2e 6c 65 66 |ht = the|Rect.lef|
|00004a30| 74 20 2b 20 6e 6f 64 65 | 2d 3e 6c 69 73 74 2e 69 |t + node|->list.i|
|00004a40| 6e 66 6f 5b 63 6f 75 6e | 74 5d 2e 77 69 64 74 68 |nfo[coun|t].width|
|00004a50| 3b 0d 09 09 69 66 20 28 | 74 68 65 49 74 65 6d 20 |;...if (|theItem |
|00004a60| 3d 3d 20 63 6f 75 6e 74 | 29 20 72 65 74 75 72 6e |== count|) return|
|00004a70| 20 74 68 65 52 65 63 74 | 3b 0d 09 09 74 68 65 52 | theRect|;...theR|
|00004a80| 65 63 74 2e 6c 65 66 74 | 20 3d 20 74 68 65 52 65 |ect.left| = theRe|
|00004a90| 63 74 2e 72 69 67 68 74 | 20 2b 20 32 3b 7d 0d 0d |ct.right| + 2;}..|
|00004aa0| 09 43 6c 65 61 72 52 65 | 63 74 28 26 74 68 65 52 |.ClearRe|ct(&theR|
|00004ab0| 65 63 74 29 3b 0d 09 72 | 65 74 75 72 6e 20 74 68 |ect);..r|eturn th|
|00004ac0| 65 52 65 63 74 3b 0d 7d | 0d 0d 76 6f 69 64 09 44 |eRect;.}|..void.D|
|00004ad0| 42 44 72 61 77 49 74 65 | 6d 28 44 6f 63 6b 49 74 |BDrawIte|m(DockIt|
|00004ae0| 65 6d 49 6e 66 6f 20 2a | 74 68 65 49 74 65 6d 2c |emInfo *|theItem,|
|00004af0| 20 52 65 63 74 20 2a 74 | 68 65 52 65 63 74 29 20 | Rect *t|heRect) |
|00004b00| 7b 0d 09 73 68 6f 72 74 | 09 74 72 61 6e 73 66 6f |{..short|.transfo|
|00004b10| 72 6d 20 3d 20 30 2c 20 | 78 3b 0d 09 52 65 63 74 |rm = 0, |x;..Rect|
|00004b20| 09 09 69 63 6f 6e 52 65 | 63 74 3b 0d 09 09 0d 09 |..iconRe|ct;.....|
|00004b30| 52 47 42 42 61 63 6b 43 | 6f 6c 6f 72 28 26 44 67 |RGBBackC|olor(&Dg|
|00004b40| 2d 3e 63 6f 6c 6f 72 2e | 6c 69 67 68 74 47 72 61 |->color.|lightGra|
|00004b50| 79 29 3b 0d 09 45 72 61 | 73 65 52 65 63 74 28 74 |y);..Era|seRect(t|
|00004b60| 68 65 52 65 63 74 29 3b | 0d 09 42 61 63 6b 43 6f |heRect);|..BackCo|
|00004b70| 6c 6f 72 28 77 68 69 74 | 65 43 6f 6c 6f 72 29 3b |lor(whit|eColor);|
|00004b80| 0d 0d 09 73 77 69 74 63 | 68 28 74 68 65 49 74 65 |...switc|h(theIte|
|00004b90| 6d 2d 3e 69 74 65 6d 4b | 69 6e 64 29 20 7b 0d 09 |m->itemK|ind) {..|
|00004ba0| 63 61 73 65 20 27 54 45 | 58 54 27 3a 2f 2f 53 74 |case 'TE|XT'://St|
|00004bb0| 61 6e 64 61 72 64 20 54 | 65 78 74 0d 09 09 0d 09 |andard T|ext.....|
|00004bc0| 09 2f 2f 20 70 61 72 61 | 6d 31 20 2d 20 70 6f 69 |.// para|m1 - poi|
|00004bd0| 6e 74 65 72 20 74 6f 20 | 61 20 63 2d 73 74 72 69 |nter to |a c-stri|
|00004be0| 6e 67 0d 09 09 2f 2f 20 | 70 61 72 61 6d 32 20 2d |ng...// |param2 -|
|00004bf0| 20 27 53 54 52 20 27 20 | 72 65 73 6f 75 72 63 65 | 'STR ' |resource|
|00004c00| 20 49 44 20 28 75 73 65 | 64 20 69 66 20 70 61 72 | ID (use|d if par|
|00004c10| 61 6d 31 3d 3d 4e 55 4c | 4c 29 0d 09 09 0d 09 09 |am1==NUL|L)......|
|00004c20| 2f 2f 6c 65 66 74 20 6a | 75 73 74 69 66 69 65 64 |//left j|ustified|
|00004c30| 0d 09 09 69 66 20 28 74 | 68 65 49 74 65 6d 2d 3e |...if (t|heItem->|
|00004c40| 64 69 73 61 62 6c 65 64 | 29 0d 09 09 09 52 47 42 |disabled|)....RGB|
|00004c50| 46 6f 72 65 43 6f 6c 6f | 72 28 26 44 67 2d 3e 63 |ForeColo|r(&Dg->c|
|00004c60| 6f 6c 6f 72 2e 67 72 61 | 79 29 3b 0d 09 09 09 0d |olor.gra|y);.....|
|00004c70| 09 09 69 66 20 28 74 68 | 65 49 74 65 6d 2d 3e 68 |..if (th|eItem->h|
|00004c80| 69 67 68 6c 69 67 68 74 | 65 64 29 0d 09 09 09 52 |ighlight|ed)....R|
|00004c90| 47 42 46 6f 72 65 43 6f | 6c 6f 72 28 26 44 67 2d |GBForeCo|lor(&Dg-|
|00004ca0| 3e 63 6f 6c 6f 72 2e 68 | 69 6c 69 74 65 29 3b 0d |>color.h|ilite);.|
|00004cb0| 09 09 4d 6f 76 65 54 6f | 28 74 68 65 52 65 63 74 |..MoveTo|(theRect|
|00004cc0| 2d 3e 6c 65 66 74 2b 31 | 2c 20 74 68 65 52 65 63 |->left+1|, theRec|
|00004cd0| 74 2d 3e 74 6f 70 20 2b | 20 44 67 2d 3e 74 65 78 |t->top +| Dg->tex|
|00004ce0| 74 49 6e 66 6f 2e 6c 65 | 61 64 69 6e 67 20 2d 20 |tInfo.le|ading - |
|00004cf0| 34 29 3b 0d 09 09 09 0d | 09 09 69 66 20 28 74 68 |4);.....|..if (th|
|00004d00| 65 49 74 65 6d 2d 3e 70 | 61 72 61 6d 31 29 0d 09 |eItem->p|aram1)..|
|00004d10| 09 09 44 72 61 77 54 65 | 78 74 28 28 63 68 61 72 |..DrawTe|xt((char|
|00004d20| 20 2a 29 74 68 65 49 74 | 65 6d 2d 3e 70 61 72 61 | *)theIt|em->para|
|00004d30| 6d 31 2c 20 30 2c 20 73 | 74 72 6c 65 6e 28 28 63 |m1, 0, s|trlen((c|
|00004d40| 68 61 72 20 2a 29 74 68 | 65 49 74 65 6d 2d 3e 70 |har *)th|eItem->p|
|00004d50| 61 72 61 6d 31 29 29 3b | 0d 09 09 65 6c 73 65 20 |aram1));|...else |
|00004d60| 69 66 20 28 74 68 65 49 | 74 65 6d 2d 3e 70 61 72 |if (theI|tem->par|
|00004d70| 61 6d 32 29 0d 09 09 09 | 44 72 61 77 53 74 72 69 |am2)....|DrawStri|
|00004d80| 6e 67 28 2a 47 65 74 53 | 74 72 69 6e 67 28 28 73 |ng(*GetS|tring((s|
|00004d90| 68 6f 72 74 29 74 68 65 | 49 74 65 6d 2d 3e 70 61 |hort)the|Item->pa|
|00004da0| 72 61 6d 32 29 29 3b 0d | 09 09 09 0d 09 09 69 66 |ram2));.|......if|
|00004db0| 20 28 74 68 65 49 74 65 | 6d 2d 3e 68 69 67 68 6c | (theIte|m->highl|
|00004dc0| 69 67 68 74 65 64 29 20 | 7b 0d 09 09 09 46 6f 72 |ighted) |{....For|
|00004dd0| 65 43 6f 6c 6f 72 28 62 | 6c 61 63 6b 43 6f 6c 6f |eColor(b|lackColo|
|00004de0| 72 29 3b 0d 09 09 09 4d | 6f 76 65 54 6f 28 74 68 |r);....M|oveTo(th|
|00004df0| 65 52 65 63 74 2d 3e 6c | 65 66 74 2b 32 2c 20 74 |eRect->l|eft+2, t|
|00004e00| 68 65 52 65 63 74 2d 3e | 74 6f 70 20 2b 20 44 67 |heRect->|top + Dg|
|00004e10| 2d 3e 74 65 78 74 49 6e | 66 6f 2e 6c 65 61 64 69 |->textIn|fo.leadi|
|00004e20| 6e 67 20 2d 20 33 29 3b | 0d 09 09 09 69 66 20 28 |ng - 3);|....if (|
|00004e30| 74 68 65 49 74 65 6d 2d | 3e 70 61 72 61 6d 31 29 |theItem-|>param1)|
|00004e40| 0d 09 09 09 09 44 72 61 | 77 54 65 78 74 28 28 63 |.....Dra|wText((c|
|00004e50| 68 61 72 20 2a 29 74 68 | 65 49 74 65 6d 2d 3e 70 |har *)th|eItem->p|
|00004e60| 61 72 61 6d 31 2c 20 30 | 2c 20 73 74 72 6c 65 6e |aram1, 0|, strlen|
|00004e70| 28 28 63 68 61 72 20 2a | 29 74 68 65 49 74 65 6d |((char *|)theItem|
|00004e80| 2d 3e 70 61 72 61 6d 31 | 29 29 3b 0d 09 09 09 65 |->param1|));....e|
|00004e90| 6c 73 65 20 69 66 20 28 | 74 68 65 49 74 65 6d 2d |lse if (|theItem-|
|00004ea0| 3e 70 61 72 61 6d 32 29 | 0d 09 09 09 09 44 72 61 |>param2)|.....Dra|
|00004eb0| 77 53 74 72 69 6e 67 28 | 2a 47 65 74 53 74 72 69 |wString(|*GetStri|
|00004ec0| 6e 67 28 28 73 68 6f 72 | 74 29 74 68 65 49 74 65 |ng((shor|t)theIte|
|00004ed0| 6d 2d 3e 70 61 72 61 6d | 32 29 29 3b 7d 0d 09 09 |m->param|2));}...|
|00004ee0| 0d 09 09 62 72 65 61 6b | 3b 0d 09 09 0d 09 63 61 |...break|;.....ca|
|00004ef0| 73 65 20 27 63 69 63 6e | 27 3a 2f 2f 43 6f 6c 6f |se 'cicn|'://Colo|
|00004f00| 75 72 20 49 63 6f 6e 0d | 09 0d 09 09 2f 2f 20 70 |ur Icon.|....// p|
|00004f10| 61 72 61 6d 31 20 2d 20 | 43 49 63 6f 6e 48 61 6e |aram1 - |CIconHan|
|00004f20| 64 6c 65 20 6f 66 20 61 | 20 63 69 63 6e 0d 09 09 |dle of a| cicn...|
|00004f30| 2f 2f 20 70 61 72 61 6d | 32 20 2d 20 73 74 6f 72 |// param|2 - stor|
|00004f40| 65 73 20 74 68 65 20 72 | 65 73 6f 75 72 63 65 20 |es the r|esource |
|00004f50| 49 44 20 6f 66 20 61 20 | 63 69 63 6e 20 28 75 73 |ID of a |cicn (us|
|00004f60| 65 64 20 69 66 20 70 61 | 72 61 6d 31 3d 3d 4e 55 |ed if pa|ram1==NU|
|00004f70| 4c 4c 29 0d 09 09 09 09 | 0d 09 09 69 66 20 28 74 |LL).....|...if (t|
|00004f80| 68 65 49 74 65 6d 2d 3e | 70 61 72 61 6d 31 20 3d |heItem->|param1 =|
|00004f90| 3d 20 4e 55 4c 4c 29 0d | 09 09 09 74 68 65 49 74 |= NULL).|...theIt|
|00004fa0| 65 6d 2d 3e 70 61 72 61 | 6d 31 20 3d 20 28 6c 6f |em->para|m1 = (lo|
|00004fb0| 6e 67 29 47 65 74 43 49 | 63 6f 6e 28 28 73 68 6f |ng)GetCI|con((sho|
|00004fc0| 72 74 29 74 68 65 49 74 | 65 6d 2d 3e 70 61 72 61 |rt)theIt|em->para|
|00004fd0| 6d 32 29 3b 0d 09 09 0d | 09 09 69 63 6f 6e 52 65 |m2);....|..iconRe|
|00004fe0| 63 74 20 3d 20 2a 74 68 | 65 52 65 63 74 3b 0d 09 |ct = *th|eRect;..|
|00004ff0| 09 69 63 6f 6e 52 65 63 | 74 2e 6c 65 66 74 20 3d |.iconRec|t.left =|
|00005000| 20 74 68 65 52 65 63 74 | 2d 3e 6c 65 66 74 20 2b | theRect|->left +|
|00005010| 20 28 28 74 68 65 52 65 | 63 74 2d 3e 72 69 67 68 | ((theRe|ct->righ|
|00005020| 74 20 2d 20 74 68 65 52 | 65 63 74 2d 3e 6c 65 66 |t - theR|ect->lef|
|00005030| 74 20 2d 20 31 36 29 2f | 32 29 3b 0d 09 09 69 63 |t - 16)/|2);...ic|
|00005040| 6f 6e 52 65 63 74 2e 72 | 69 67 68 74 20 3d 20 69 |onRect.r|ight = i|
|00005050| 63 6f 6e 52 65 63 74 2e | 6c 65 66 74 20 2b 20 31 |conRect.|left + 1|
|00005060| 36 3b 0d 09 09 69 63 6f | 6e 52 65 63 74 2e 62 6f |6;...ico|nRect.bo|
|00005070| 74 74 6f 6d 20 3d 20 69 | 63 6f 6e 52 65 63 74 2e |ttom = i|conRect.|
|00005080| 74 6f 70 20 2b 20 31 36 | 3b 0d 0d 09 09 69 66 20 |top + 16|;....if |
|00005090| 28 74 68 65 49 74 65 6d | 2d 3e 64 69 73 61 62 6c |(theItem|->disabl|
|000050a0| 65 64 29 0d 09 09 09 74 | 72 61 6e 73 66 6f 72 6d |ed)....t|ransform|
|000050b0| 20 2b 2b 3b 0d 09 09 09 | 0d 09 09 69 66 20 28 74 | ++;....|...if (t|
|000050c0| 68 65 49 74 65 6d 2d 3e | 68 69 67 68 6c 69 67 68 |heItem->|highligh|
|000050d0| 74 65 64 29 20 7b 0d 09 | 09 09 74 72 61 6e 73 66 |ted) {..|..transf|
|000050e0| 6f 72 6d 20 2b 3d 20 30 | 78 34 30 30 30 3b 0d 09 |orm += 0|x4000;..|
|000050f0| 09 09 4f 66 66 73 65 74 | 52 65 63 74 28 26 69 63 |..Offset|Rect(&ic|
|00005100| 6f 6e 52 65 63 74 2c 20 | 31 2c 20 31 29 3b 7d 0d |onRect, |1, 1);}.|
|00005110| 09 09 09 0d 09 09 50 6c | 6f 74 43 49 63 6f 6e 48 |......Pl|otCIconH|
|00005120| 61 6e 64 6c 65 28 26 69 | 63 6f 6e 52 65 63 74 2c |andle(&i|conRect,|
|00005130| 20 30 2c 20 74 72 61 6e | 73 66 6f 72 6d 2c 20 28 | 0, tran|sform, (|
|00005140| 43 49 63 6f 6e 48 61 6e | 64 6c 65 29 74 68 65 49 |CIconHan|dle)theI|
|00005150| 74 65 6d 2d 3e 70 61 72 | 61 6d 31 29 3b 0d 09 09 |tem->par|am1);...|
|00005160| 0d 09 09 62 72 65 61 6b | 3b 0d 09 09 0d 09 63 61 |...break|;.....ca|
|00005170| 73 65 20 27 2d 2d 2d 2d | 27 3a 2f 2f 53 65 70 61 |se '----|'://Sepa|
|00005180| 72 61 74 6f 72 20 42 6c | 6f 63 6b 0d 09 0d 09 09 |rator Bl|ock.....|
|00005190| 2f 2f 20 70 61 72 61 6d | 31 20 2d 20 69 67 6e 6f |// param|1 - igno|
|000051a0| 72 65 64 0d 09 09 2f 2f | 20 70 61 72 61 6d 32 20 |red...//| param2 |
|000051b0| 2d 20 69 67 6e 6f 72 65 | 64 0d 09 09 0d 09 09 78 |- ignore|d......x|
|000051c0| 20 3d 20 74 68 65 52 65 | 63 74 2d 3e 6c 65 66 74 | = theRe|ct->left|
|000051d0| 20 2b 20 28 74 68 65 52 | 65 63 74 2d 3e 72 69 67 | + (theR|ect->rig|
|000051e0| 68 74 20 2d 20 74 68 65 | 52 65 63 74 2d 3e 6c 65 |ht - the|Rect->le|
|000051f0| 66 74 20 2d 20 33 29 2f | 32 3b 0d 09 09 0d 09 09 |ft - 3)/|2;......|
|00005200| 52 47 42 46 6f 72 65 43 | 6f 6c 6f 72 28 26 44 67 |RGBForeC|olor(&Dg|
|00005210| 2d 3e 63 6f 6c 6f 72 2e | 67 72 61 79 29 3b 0d 09 |->color.|gray);..|
|00005220| 09 4d 6f 76 65 54 6f 28 | 78 2c 20 74 68 65 52 65 |.MoveTo(|x, theRe|
|00005230| 63 74 2d 3e 74 6f 70 29 | 3b 0d 09 09 4c 69 6e 65 |ct->top)|;...Line|
|00005240| 54 6f 28 78 2c 20 74 68 | 65 52 65 63 74 2d 3e 62 |To(x, th|eRect->b|
|00005250| 6f 74 74 6f 6d 29 3b 0d | 09 09 0d 09 09 46 6f 72 |ottom);.|.....For|
|00005260| 65 43 6f 6c 6f 72 28 62 | 6c 61 63 6b 43 6f 6c 6f |eColor(b|lackColo|
|00005270| 72 29 3b 0d 09 09 4d 6f | 76 65 54 6f 28 78 2b 31 |r);...Mo|veTo(x+1|
|00005280| 2c 20 74 68 65 52 65 63 | 74 2d 3e 74 6f 70 2d 31 |, theRec|t->top-1|
|00005290| 29 3b 0d 09 09 4c 69 6e | 65 54 6f 28 78 2b 31 2c |);...Lin|eTo(x+1,|
|000052a0| 20 74 68 65 52 65 63 74 | 2d 3e 62 6f 74 74 6f 6d | theRect|->bottom|
|000052b0| 29 3b 0d 09 09 0d 09 09 | 46 6f 72 65 43 6f 6c 6f |);......|ForeColo|
|000052c0| 72 28 77 68 69 74 65 43 | 6f 6c 6f 72 29 3b 0d 09 |r(whiteC|olor);..|
|000052d0| 09 4d 6f 76 65 54 6f 28 | 78 2b 32 2c 20 74 68 65 |.MoveTo(|x+2, the|
|000052e0| 52 65 63 74 2d 3e 74 6f | 70 29 3b 0d 09 09 4c 69 |Rect->to|p);...Li|
|000052f0| 6e 65 54 6f 28 78 2b 32 | 2c 20 74 68 65 52 65 63 |neTo(x+2|, theRec|
|00005300| 74 2d 3e 62 6f 74 74 6f | 6d 29 3b 0d 09 09 0d 09 |t->botto|m);.....|
|00005310| 09 62 72 65 61 6b 3b 0d | 09 09 0d 09 63 61 73 65 |.break;.|....case|
|00005320| 20 27 4d 45 4e 55 27 3a | 2f 2f 50 75 6c 6c 20 44 | 'MENU':|//Pull D|
|00005330| 6f 77 6e 20 4d 65 6e 75 | 20 28 42 61 73 65 64 20 |own Menu| (Based |
|00005340| 6f 6e 20 72 65 73 6f 75 | 72 63 65 29 0d 09 0d 09 |on resou|rce)....|
|00005350| 09 2f 2f 20 70 61 72 61 | 6d 31 20 2d 20 4d 65 6e |.// para|m1 - Men|
|00005360| 75 48 61 6e 64 6c 65 20 | 6f 66 20 74 68 65 20 6d |uHandle |of the m|
|00005370| 65 6e 75 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |enu asso|ciated w|
|00005380| 69 74 68 20 74 68 69 73 | 20 69 74 65 6d 0d 09 09 |ith this| item...|
|00005390| 2f 2f 20 70 61 72 61 6d | 32 20 2d 20 52 65 73 6f |// param|2 - Reso|
|000053a0| 75 72 63 65 20 49 44 20 | 6f 66 20 74 68 65 20 6d |urce ID |of the m|
|000053b0| 65 6e 75 20 22 20 22 20 | 22 20 22 20 28 75 73 65 |enu " " |" " (use|
|000053c0| 64 20 69 66 20 70 61 72 | 61 6d 31 3d 3d 4e 55 4c |d if par|am1==NUL|
|000053d0| 4c 29 0d 09 09 0d 09 64 | 65 66 61 75 6c 74 3a 2f |L).....d|efault:/|
|000053e0| 2f 6a 75 73 74 20 74 6f | 20 73 68 6f 77 20 77 65 |/just to| show we|
|000053f0| 20 63 61 72 65 2e 2e 2e | 0d 09 09 46 72 61 6d 65 | care...|...Frame|
|00005400| 52 65 63 74 28 74 68 65 | 52 65 63 74 29 3b 7d 0d |Rect(the|Rect);}.|
|00005410| 0d 09 46 6f 72 65 43 6f | 6c 6f 72 28 62 6c 61 63 |..ForeCo|lor(blac|
|00005420| 6b 43 6f 6c 6f 72 29 3b | 0d 0d 7d 0d 09 0d 63 68 |kColor);|..}...ch|
|00005430| 61 72 09 50 74 49 6e 44 | 42 28 57 69 6e 64 6f 77 |ar.PtInD|B(Window|
|00005440| 50 74 72 20 74 68 65 57 | 69 6e 64 6f 77 2c 20 50 |Ptr theW|indow, P|
|00005450| 6f 69 6e 74 20 74 68 65 | 50 6f 69 6e 74 29 0d 09 |oint the|Point)..|
|00005460| 7b 0d 09 63 68 61 72 09 | 09 72 65 73 75 6c 74 3b |{..char.|.result;|
|00005470| 0d 09 0d 09 69 66 20 28 | 21 47 65 74 44 42 46 72 |....if (|!GetDBFr|
|00005480| 6f 6d 57 69 6e 64 6f 77 | 28 74 68 65 57 69 6e 64 |omWindow|(theWind|
|00005490| 6f 77 29 29 0d 09 09 72 | 65 74 75 72 6e 20 66 61 |ow))...r|eturn fa|
|000054a0| 6c 73 65 3b 0d 0d 09 44 | 42 53 65 74 55 70 50 65 |lse;...D|BSetUpPe|
|000054b0| 6e 53 74 75 66 66 28 74 | 68 65 57 69 6e 64 6f 77 |nStuff(t|heWindow|
|000054c0| 2c 20 47 65 74 44 42 46 | 72 6f 6d 57 69 6e 64 6f |, GetDBF|romWindo|
|000054d0| 77 28 74 68 65 57 69 6e | 64 6f 77 29 2d 3e 64 6f |w(theWin|dow)->do|
|000054e0| 63 6b 48 65 61 64 2d 3e | 72 65 73 4e 61 6d 65 2c |ckHead->|resName,|
|000054f0| 20 74 72 75 65 29 3b 0d | 09 47 6c 6f 62 61 6c 54 | true);.|.GlobalT|
|00005500| 6f 4c 6f 63 61 6c 28 26 | 74 68 65 50 6f 69 6e 74 |oLocal(&|thePoint|
|00005510| 29 3b 0d 09 72 65 73 75 | 6c 74 20 3d 20 50 74 49 |);..resu|lt = PtI|
|00005520| 6e 52 65 63 74 28 74 68 | 65 50 6f 69 6e 74 2c 20 |nRect(th|ePoint, |
|00005530| 26 47 65 74 44 42 52 65 | 63 74 28 74 68 65 57 69 |&GetDBRe|ct(theWi|
|00005540| 6e 64 6f 77 29 29 3b 0d | 09 44 42 52 65 73 74 6f |ndow));.|.DBResto|
|00005550| 72 65 50 65 6e 53 74 75 | 66 66 28 74 72 75 65 29 |rePenStu|ff(true)|
|00005560| 3b 0d 09 72 65 74 75 72 | 6e 20 72 65 73 75 6c 74 |;..retur|n result|
|00005570| 3b 0d 09 7d 0d 09 0d 76 | 6f 69 64 09 44 42 53 68 |;..}...v|oid.DBSh|
|00005580| 6f 77 48 69 64 65 28 57 | 69 6e 64 6f 77 50 74 72 |owHide(W|indowPtr|
|00005590| 20 74 68 65 57 69 6e 64 | 6f 77 2c 20 53 74 72 32 | theWind|ow, Str2|
|000055a0| 35 35 20 74 68 65 44 6f | 63 6b 42 61 72 2c 20 63 |55 theDo|ckBar, c|
|000055b0| 68 61 72 20 73 68 6f 77 | 49 74 29 0d 09 7b 0d 09 |har show|It)..{..|
|000055c0| 65 78 74 65 72 6e 20 09 | 09 44 42 47 6c 6f 62 61 |extern .|.DBGloba|
|000055d0| 6c 73 50 74 72 20 44 67 | 3b 0d 09 52 65 63 74 09 |lsPtr Dg|;..Rect.|
|000055e0| 09 09 74 68 65 52 65 63 | 74 3b 0d 09 44 42 50 74 |..theRec|t;..DBPt|
|000055f0| 72 09 09 6e 6f 64 65 20 | 3d 20 47 65 74 44 42 50 |r..node |= GetDBP|
|00005600| 74 72 46 72 6f 6d 44 42 | 28 47 65 74 44 42 46 72 |trFromDB|(GetDBFr|
|00005610| 6f 6d 57 69 6e 64 6f 77 | 28 74 68 65 57 69 6e 64 |omWindow|(theWind|
|00005620| 6f 77 29 2c 20 74 68 65 | 44 6f 63 6b 42 61 72 29 |ow), the|DockBar)|
|00005630| 3b 0d 09 73 68 6f 72 74 | 09 09 68 65 69 67 68 74 |;..short|..height|
|00005640| 3b 0d 09 52 67 6e 48 61 | 6e 64 6c 65 09 09 75 70 |;..RgnHa|ndle..up|
|00005650| 64 61 74 65 52 67 6e 20 | 3d 20 4e 65 77 52 67 6e |dateRgn |= NewRgn|
|00005660| 28 29 3b 0d 09 0d 09 69 | 66 20 28 6e 6f 64 65 21 |();....i|f (node!|
|00005670| 3d 30 29 20 7b 0d 09 09 | 0d 09 09 69 66 20 28 21 |=0) {...|...if (!|
|00005680| 6e 6f 64 65 2d 3e 69 73 | 44 6f 63 6b 65 64 20 26 |node->is|Docked &|
|00005690| 26 20 6e 6f 64 65 2d 3e | 69 73 56 69 73 69 62 6c |& node->|isVisibl|
|000056a0| 65 29 20 72 65 74 75 72 | 6e 3b 2f 2f 6e 6f 20 70 |e) retur|n;//no p|
|000056b0| 6c 61 63 65 20 66 6f 72 | 20 75 73 20 68 65 72 65 |lace for| us here|
|000056c0| 21 21 21 0d 09 0d 09 09 | 69 66 20 28 6e 6f 64 65 |!!!.....|if (node|
|000056d0| 2d 3e 69 73 56 69 73 69 | 62 6c 65 20 21 3d 20 73 |->isVisi|ble != s|
|000056e0| 68 6f 77 49 74 29 20 7b | 0d 09 09 09 6e 6f 64 65 |howIt) {|....node|
|000056f0| 2d 3e 69 73 56 69 73 69 | 62 6c 65 20 3d 20 73 68 |->isVisi|ble = sh|
|00005700| 6f 77 49 74 3b 0d 09 09 | 09 44 42 53 65 74 55 70 |owIt;...|.DBSetUp|
|00005710| 50 65 6e 53 74 75 66 66 | 28 74 68 65 57 69 6e 64 |PenStuff|(theWind|
|00005720| 6f 77 2c 20 74 68 65 44 | 6f 63 6b 42 61 72 2c 20 |ow, theD|ockBar, |
|00005730| 74 72 75 65 29 3b 0d 09 | 09 09 74 68 65 52 65 63 |true);..|..theRec|
|00005740| 74 20 3d 20 74 68 65 57 | 69 6e 64 6f 77 2d 3e 70 |t = theW|indow->p|
|00005750| 6f 72 74 52 65 63 74 3b | 0d 09 09 09 68 65 69 67 |ortRect;|....heig|
|00005760| 68 74 20 3d 20 6e 6f 64 | 65 2d 3e 62 6f 75 6e 64 |ht = nod|e->bound|
|00005770| 73 2e 62 6f 74 74 6f 6d | 20 2d 20 6e 6f 64 65 2d |s.bottom| - node-|
|00005780| 3e 62 6f 75 6e 64 73 2e | 74 6f 70 3b 0d 09 09 09 |>bounds.|top;....|
|00005790| 0d 09 09 09 69 66 20 28 | 73 68 6f 77 49 74 29 20 |....if (|showIt) |
|000057a0| 7b 0d 09 09 09 09 6e 6f | 64 65 2d 3e 62 6f 75 6e |{.....no|de->boun|
|000057b0| 64 73 2e 74 6f 70 20 3d | 20 44 42 47 65 74 48 65 |ds.top =| DBGetHe|
|000057c0| 69 67 68 74 28 74 68 65 | 57 69 6e 64 6f 77 29 3b |ight(the|Window);|
|000057d0| 0d 09 09 09 09 6e 6f 64 | 65 2d 3e 62 6f 75 6e 64 |.....nod|e->bound|
|000057e0| 73 2e 62 6f 74 74 6f 6d | 20 3d 20 6e 6f 64 65 2d |s.bottom| = node-|
|000057f0| 3e 62 6f 75 6e 64 73 2e | 74 6f 70 20 2b 20 68 65 |>bounds.|top + he|
|00005800| 69 67 68 74 3b 7d 0d 09 | 09 09 65 6c 73 65 20 7b |ight;}..|..else {|
|00005810| 0d 09 09 09 09 6e 6f 64 | 65 2d 3e 62 6f 75 6e 64 |.....nod|e->bound|
|00005820| 73 2e 74 6f 70 20 3d 20 | 30 3b 0d 09 09 09 09 6e |s.top = |0;.....n|
|00005830| 6f 64 65 2d 3e 62 6f 75 | 6e 64 73 2e 62 6f 74 74 |ode->bou|nds.bott|
|00005840| 6f 6d 20 3d 20 68 65 69 | 67 68 74 3b 7d 0d 09 09 |om = hei|ght;}...|
|00005850| 09 6e 6f 64 65 2d 3e 69 | 73 44 6f 63 6b 65 64 20 |.node->i|sDocked |
|00005860| 3d 20 74 72 75 65 3b 0d | 09 09 09 0d 09 09 09 69 |= true;.|.......i|
|00005870| 66 20 28 21 73 68 6f 77 | 49 74 29 20 7b 0d 09 09 |f (!show|It) {...|
|00005880| 09 09 53 63 72 6f 6c 6c | 52 65 63 74 28 26 74 68 |..Scroll|Rect(&th|
|00005890| 65 52 65 63 74 2c 20 30 | 2c 20 2d 68 65 69 67 68 |eRect, 0|, -heigh|
|000058a0| 74 2c 20 75 70 64 61 74 | 65 52 67 6e 29 3b 0d 09 |t, updat|eRgn);..|
|000058b0| 09 09 09 49 6e 76 61 6c | 52 67 6e 28 75 70 64 61 |...Inval|Rgn(upda|
|000058c0| 74 65 52 67 6e 29 3b 0d | 09 09 09 09 53 69 7a 65 |teRgn);.|....Size|
|000058d0| 57 69 6e 64 6f 77 28 74 | 68 65 57 69 6e 64 6f 77 |Window(t|heWindow|
|000058e0| 2c 74 68 65 52 65 63 74 | 2e 72 69 67 68 74 20 2d |,theRect|.right -|
|000058f0| 20 74 68 65 52 65 63 74 | 2e 6c 65 66 74 2c 20 74 | theRect|.left, t|
|00005900| 68 65 52 65 63 74 2e 62 | 6f 74 74 6f 6d 20 2d 20 |heRect.b|ottom - |
|00005910| 74 68 65 52 65 63 74 2e | 74 6f 70 20 2d 20 68 65 |theRect.|top - he|
|00005920| 69 67 68 74 2c 20 74 72 | 75 65 29 3b 0d 09 09 09 |ight, tr|ue);....|
|00005930| 09 44 67 2d 3e 73 61 76 | 65 4f 72 69 67 69 6e 20 |.Dg->sav|eOrigin |
|00005940| 3d 20 44 67 2d 3e 73 61 | 76 65 4f 72 69 67 69 6e |= Dg->sa|veOrigin|
|00005950| 20 2b 20 68 65 69 67 68 | 74 3b 7d 0d 09 09 09 65 | + heigh|t;}....e|
|00005960| 6c 73 65 20 7b 0d 09 09 | 09 09 53 69 7a 65 57 69 |lse {...|..SizeWi|
|00005970| 6e 64 6f 77 28 74 68 65 | 57 69 6e 64 6f 77 2c 74 |ndow(the|Window,t|
|00005980| 68 65 52 65 63 74 2e 72 | 69 67 68 74 20 2d 20 74 |heRect.r|ight - t|
|00005990| 68 65 52 65 63 74 2e 6c | 65 66 74 2c 20 74 68 65 |heRect.l|eft, the|
|000059a0| 52 65 63 74 2e 62 6f 74 | 74 6f 6d 20 2d 20 74 68 |Rect.bot|tom - th|
|000059b0| 65 52 65 63 74 2e 74 6f | 70 20 2b 20 68 65 69 67 |eRect.to|p + heig|
|000059c0| 68 74 2c 74 72 75 65 29 | 3b 0d 09 09 09 09 44 67 |ht,true)|;.....Dg|
|000059d0| 2d 3e 73 61 76 65 4f 72 | 69 67 69 6e 20 3d 20 44 |->saveOr|igin = D|
|000059e0| 67 2d 3e 73 61 76 65 4f | 72 69 67 69 6e 20 2d 20 |g->saveO|rigin - |
|000059f0| 68 65 69 67 68 74 3b 0d | 09 09 09 09 53 63 72 6f |height;.|....Scro|
|00005a00| 6c 6c 52 65 63 74 28 26 | 74 68 65 52 65 63 74 2c |llRect(&|theRect,|
|00005a10| 20 30 2c 20 68 65 69 67 | 68 74 2c 20 75 70 64 61 | 0, heig|ht, upda|
|00005a20| 74 65 52 67 6e 29 3b 0d | 09 09 09 09 49 6e 76 61 |teRgn);.|....Inva|
|00005a30| 6c 52 67 6e 28 75 70 64 | 61 74 65 52 67 6e 29 3b |lRgn(upd|ateRgn);|
|00005a40| 7d 0d 09 09 09 09 09 09 | 0d 09 09 09 44 42 52 65 |}.......|....DBRe|
|00005a50| 73 74 6f 72 65 50 65 6e | 53 74 75 66 66 28 74 72 |storePen|Stuff(tr|
|00005a60| 75 65 29 3b 0d 09 09 09 | 0d 09 09 09 44 42 55 70 |ue);....|....DBUp|
|00005a70| 64 61 74 65 28 74 68 65 | 57 69 6e 64 6f 77 29 3b |date(the|Window);|
|00005a80| 0d 09 09 09 47 65 74 44 | 42 46 72 6f 6d 57 69 6e |....GetD|BFromWin|
|00005a90| 64 6f 77 28 74 68 65 57 | 69 6e 64 6f 77 29 2d 3e |dow(theW|indow)->|
|00005aa0| 6f 66 66 73 65 74 20 3d | 20 74 68 65 57 69 6e 64 |offset =| theWind|
|00005ab0| 6f 77 2d 3e 70 6f 72 74 | 52 65 63 74 2e 74 6f 70 |ow->port|Rect.top|
|00005ac0| 20 2b 20 44 42 47 65 74 | 48 65 69 67 68 74 28 74 | + DBGet|Height(t|
|00005ad0| 68 65 57 69 6e 64 6f 77 | 29 3b 0d 09 09 09 44 42 |heWindow|);....DB|
|00005ae0| 44 72 61 77 28 74 68 65 | 57 69 6e 64 6f 77 2c 20 |Draw(the|Window, |
|00005af0| 66 61 6c 73 65 29 3b 0d | 09 09 09 0d 09 09 09 7d |false);.|.......}|
|00005b00| 0d 09 09 7d 0d 09 09 0d | 09 44 69 73 70 6f 73 65 |...}....|.Dispose|
|00005b10| 52 67 6e 28 75 70 64 61 | 74 65 52 67 6e 29 3b 0d |Rgn(upda|teRgn);.|
|00005b20| 09 7d 0d 09 0d 44 42 53 | 74 79 6c 65 09 44 42 47 |.}...DBS|tyle.DBG|
|00005b30| 65 74 53 74 79 6c 65 28 | 57 69 6e 64 6f 77 50 74 |etStyle(|WindowPt|
|00005b40| 72 20 74 68 65 57 69 6e | 64 6f 77 2c 20 53 74 72 |r theWin|dow, Str|
|00005b50| 32 35 35 20 74 68 65 44 | 6f 63 6b 42 61 72 29 0d |255 theD|ockBar).|
|00005b60| 09 7b 0d 09 72 65 74 75 | 72 6e 20 28 47 65 74 44 |.{..retu|rn (GetD|
|00005b70| 42 50 74 72 46 72 6f 6d | 44 42 28 47 65 74 44 42 |BPtrFrom|DB(GetDB|
|00005b80| 46 72 6f 6d 57 69 6e 64 | 6f 77 28 74 68 65 57 69 |FromWind|ow(theWi|
|00005b90| 6e 64 6f 77 29 2c 20 74 | 68 65 44 6f 63 6b 42 61 |ndow), t|heDockBa|
|00005ba0| 72 29 2d 3e 73 74 79 6c | 65 29 3b 0d 09 7d 0d 09 |r)->styl|e);..}..|
|00005bb0| 0d 76 6f 69 64 09 44 42 | 53 65 74 53 74 79 6c 65 |.void.DB|SetStyle|
|00005bc0| 28 57 69 6e 64 6f 77 50 | 74 72 20 74 68 65 57 69 |(WindowP|tr theWi|
|00005bd0| 6e 64 6f 77 2c 20 53 74 | 72 32 35 35 20 74 68 65 |ndow, St|r255 the|
|00005be0| 44 6f 63 6b 42 61 72 2c | 20 44 42 53 74 79 6c 65 |DockBar,| DBStyle|
|00005bf0| 20 2a 6e 65 77 53 74 79 | 6c 65 29 0d 09 7b 0d 09 | *newSty|le)..{..|
|00005c00| 44 42 53 65 74 55 70 50 | 65 6e 53 74 75 66 66 28 |DBSetUpP|enStuff(|
|00005c10| 74 68 65 57 69 6e 64 6f | 77 2c 20 74 68 65 44 6f |theWindo|w, theDo|
|00005c20| 63 6b 42 61 72 2c 20 74 | 72 75 65 29 3b 0d 09 47 |ckBar, t|rue);..G|
|00005c30| 65 74 44 42 50 74 72 46 | 72 6f 6d 44 42 28 47 65 |etDBPtrF|romDB(Ge|
|00005c40| 74 44 42 46 72 6f 6d 57 | 69 6e 64 6f 77 28 74 68 |tDBFromW|indow(th|
|00005c50| 65 57 69 6e 64 6f 77 29 | 2c 20 74 68 65 44 6f 63 |eWindow)|, theDoc|
|00005c60| 6b 42 61 72 29 2d 3e 73 | 74 79 6c 65 20 3d 20 2a |kBar)->s|tyle = *|
|00005c70| 6e 65 77 53 74 79 6c 65 | 3b 0d 09 49 6e 76 61 6c |newStyle|;..Inval|
|00005c80| 52 65 63 74 28 26 28 74 | 68 65 57 69 6e 64 6f 77 |Rect(&(t|heWindow|
|00005c90| 2d 3e 70 6f 72 74 52 65 | 63 74 29 29 3b 0d 09 44 |->portRe|ct));..D|
|00005ca0| 42 52 65 73 74 6f 72 65 | 50 65 6e 53 74 75 66 66 |BRestore|PenStuff|
|00005cb0| 28 74 72 75 65 29 3b 0d | 09 7d 0d 09 0d 73 68 6f |(true);.|.}...sho|
|00005cc0| 72 74 09 44 42 47 65 74 | 48 65 69 67 68 74 28 57 |rt.DBGet|Height(W|
|00005cd0| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind|
|00005ce0| 6f 77 29 0d 09 7b 0d 09 | 52 65 63 74 09 09 74 68 |ow)..{..|Rect..th|
|00005cf0| 65 52 65 63 74 20 3d 20 | 47 65 74 44 42 52 65 63 |eRect = |GetDBRec|
|00005d00| 74 28 74 68 65 57 69 6e | 64 6f 77 29 3b 0d 09 0d |t(theWin|dow);...|
|00005d10| 09 72 65 74 75 72 6e 20 | 74 68 65 52 65 63 74 2e |.return |theRect.|
|00005d20| 62 6f 74 74 6f 6d 20 2d | 20 74 68 65 52 65 63 74 |bottom -| theRect|
|00005d30| 2e 74 6f 70 3b 0d 09 7d | 0d 09 0d 73 68 6f 72 74 |.top;..}|...short|
|00005d40| 09 44 42 47 65 74 4f 66 | 66 73 65 74 28 57 69 6e |.DBGetOf|fset(Win|
|00005d50| 64 6f 77 50 74 72 20 74 | 68 65 57 69 6e 64 6f 77 |dowPtr t|heWindow|
|00005d60| 29 0d 09 7b 0d 09 44 42 | 57 69 6e 64 6f 77 50 74 |)..{..DB|WindowPt|
|00005d70| 72 09 6e 6f 64 65 3b 0d | 09 0d 09 6e 6f 64 65 20 |r.node;.|...node |
|00005d80| 3d 20 47 65 74 44 42 46 | 72 6f 6d 57 69 6e 64 6f |= GetDBF|romWindo|
|00005d90| 77 28 74 68 65 57 69 6e | 64 6f 77 29 3b 0d 09 69 |w(theWin|dow);..i|
|00005da0| 66 20 28 6e 6f 64 65 21 | 3d 30 29 20 7b 0d 09 09 |f (node!|=0) {...|
|00005db0| 72 65 74 75 72 6e 20 6e | 6f 64 65 2d 3e 6f 66 66 |return n|ode->off|
|00005dc0| 73 65 74 3b 7d 0d 09 72 | 65 74 75 72 6e 20 30 3b |set;}..r|eturn 0;|
|00005dd0| 0d 09 7d 0d 09 0d 76 6f | 69 64 09 44 42 53 65 74 |..}...vo|id.DBSet|
|00005de0| 4f 66 66 73 65 74 28 57 | 69 6e 64 6f 77 50 74 72 |Offset(W|indowPtr|
|00005df0| 20 74 68 65 57 69 6e 64 | 6f 77 2c 20 73 68 6f 72 | theWind|ow, shor|
|00005e00| 74 20 6e 65 77 4f 66 66 | 73 65 74 29 0d 09 7b 0d |t newOff|set)..{.|
|00005e10| 09 44 42 57 69 6e 64 6f | 77 50 74 72 09 6e 6f 64 |.DBWindo|wPtr.nod|
|00005e20| 65 3b 0d 0d 09 6e 6f 64 | 65 20 3d 20 47 65 74 44 |e;...nod|e = GetD|
|00005e30| 42 46 72 6f 6d 57 69 6e | 64 6f 77 28 74 68 65 57 |BFromWin|dow(theW|
|00005e40| 69 6e 64 6f 77 29 3b 0d | 09 69 66 20 28 6e 6f 64 |indow);.|.if (nod|
|00005e50| 65 21 3d 30 29 20 7b 0d | 09 09 6e 6f 64 65 2d 3e |e!=0) {.|..node->|
|00005e60| 6f 66 66 73 65 74 20 3d | 20 6e 65 77 4f 66 66 73 |offset =| newOffs|
|00005e70| 65 74 3b 7d 0d 09 7d 0d | 09 0d 76 6f 69 64 09 44 |et;}..}.|..void.D|
|00005e80| 42 47 65 74 49 74 65 6d | 44 61 74 61 28 57 69 6e |BGetItem|Data(Win|
|00005e90| 64 6f 77 50 74 72 20 74 | 68 65 57 69 6e 64 6f 77 |dowPtr t|heWindow|
|00005ea0| 2c 20 53 74 72 32 35 35 | 20 74 68 65 44 6f 63 6b |, Str255| theDock|
|00005eb0| 42 61 72 2c 20 73 68 6f | 72 74 20 69 74 65 6d 4e |Bar, sho|rt itemN|
|00005ec0| 6f 2c 20 6c 6f 6e 67 20 | 2a 70 61 72 61 6d 31 2c |o, long |*param1,|
|00005ed0| 20 6c 6f 6e 67 20 2a 70 | 61 72 61 6d 32 29 0d 09 | long *p|aram2)..|
|00005ee0| 7b 0d 09 44 42 50 74 72 | 09 6e 6f 64 65 20 3d 20 |{..DBPtr|.node = |
|00005ef0| 47 65 74 44 42 50 74 72 | 46 72 6f 6d 44 42 28 47 |GetDBPtr|FromDB(G|
|00005f00| 65 74 44 42 46 72 6f 6d | 57 69 6e 64 6f 77 28 74 |etDBFrom|Window(t|
|00005f10| 68 65 57 69 6e 64 6f 77 | 29 2c 20 74 68 65 44 6f |heWindow|), theDo|
|00005f20| 63 6b 42 61 72 29 3b 0d | 09 0d 09 69 66 20 28 6e |ckBar);.|...if (n|
|00005f30| 6f 64 65 21 3d 30 29 20 | 7b 0d 09 09 2a 70 61 72 |ode!=0) |{...*par|
|00005f40| 61 6d 31 20 3d 20 6e 6f | 64 65 2d 3e 6c 69 73 74 |am1 = no|de->list|
|00005f50| 2e 69 6e 66 6f 5b 69 74 | 65 6d 4e 6f 5d 2e 70 61 |.info[it|emNo].pa|
|00005f60| 72 61 6d 31 3b 0d 09 09 | 2a 70 61 72 61 6d 32 20 |ram1;...|*param2 |
|00005f70| 3d 20 6e 6f 64 65 2d 3e | 6c 69 73 74 2e 69 6e 66 |= node->|list.inf|
|00005f80| 6f 5b 69 74 65 6d 4e 6f | 5d 2e 70 61 72 61 6d 32 |o[itemNo|].param2|
|00005f90| 3b 7d 0d 09 7d 0d 0d 76 | 6f 69 64 09 44 42 53 65 |;}..}..v|oid.DBSe|
|00005fa0| 74 49 74 65 6d 44 61 74 | 61 28 57 69 6e 64 6f 77 |tItemDat|a(Window|
|00005fb0| 50 74 72 20 74 68 65 57 | 69 6e 64 6f 77 2c 20 53 |Ptr theW|indow, S|
|00005fc0| 74 72 32 35 35 20 74 68 | 65 44 6f 63 6b 42 61 72 |tr255 th|eDockBar|
|00005fd0| 2c 20 73 68 6f 72 74 20 | 69 74 65 6d 4e 6f 2c 20 |, short |itemNo, |
|00005fe0| 6c 6f 6e 67 20 70 61 72 | 61 6d 31 2c 20 6c 6f 6e |long par|am1, lon|
|00005ff0| 67 20 70 61 72 61 6d 32 | 29 0d 09 7b 0d 09 44 42 |g param2|)..{..DB|
|00006000| 50 74 72 09 6e 6f 64 65 | 20 3d 20 47 65 74 44 42 |Ptr.node| = GetDB|
|00006010| 50 74 72 46 72 6f 6d 44 | 42 28 47 65 74 44 42 46 |PtrFromD|B(GetDBF|
|00006020| 72 6f 6d 57 69 6e 64 6f | 77 28 74 68 65 57 69 6e |romWindo|w(theWin|
|00006030| 64 6f 77 29 2c 20 74 68 | 65 44 6f 63 6b 42 61 72 |dow), th|eDockBar|
|00006040| 29 3b 0d 09 0d 09 69 66 | 20 28 6e 6f 64 65 21 3d |);....if| (node!=|
|00006050| 30 29 20 7b 0d 09 09 6e | 6f 64 65 2d 3e 6c 69 73 |0) {...n|ode->lis|
|00006060| 74 2e 69 6e 66 6f 5b 69 | 74 65 6d 4e 6f 5d 2e 70 |t.info[i|temNo].p|
|00006070| 61 72 61 6d 31 20 3d 20 | 70 61 72 61 6d 31 3b 0d |aram1 = |param1;.|
|00006080| 09 09 6e 6f 64 65 2d 3e | 6c 69 73 74 2e 69 6e 66 |..node->|list.inf|
|00006090| 6f 5b 69 74 65 6d 4e 6f | 5d 2e 70 61 72 61 6d 32 |o[itemNo|].param2|
|000060a0| 20 3d 20 70 61 72 61 6d | 32 3b 0d 09 09 53 65 74 | = param|2;...Set|
|000060b0| 50 6f 72 74 28 6e 6f 64 | 65 2d 3e 6f 75 74 70 75 |Port(nod|e->outpu|
|000060c0| 74 57 69 6e 64 6f 77 29 | 3b 0d 09 09 69 66 20 28 |tWindow)|;...if (|
|000060d0| 6e 6f 64 65 2d 3e 69 73 | 56 69 73 69 62 6c 65 29 |node->is|Visible)|
|000060e0| 0d 09 09 09 44 42 44 72 | 61 77 28 6e 6f 64 65 2d |....DBDr|aw(node-|
|000060f0| 3e 6f 75 74 70 75 74 57 | 69 6e 64 6f 77 2c 20 21 |>outputW|indow, !|
|00006100| 28 6e 6f 64 65 2d 3e 69 | 73 44 6f 63 6b 65 64 29 |(node->i|sDocked)|
|00006110| 29 3b 7d 0d 09 09 53 65 | 74 50 6f 72 74 28 74 68 |);}...Se|tPort(th|
|00006120| 65 57 69 6e 64 6f 77 29 | 3b 0d 09 7d 0d 09 0d 76 |eWindow)|;..}...v|
|00006130| 6f 69 64 09 44 42 48 61 | 6e 64 6c 65 46 6c 6f 61 |oid.DBHa|ndleFloa|
|00006140| 74 65 72 28 43 6f 6d 6d | 61 6e 64 20 2a 74 68 65 |ter(Comm|and *the|
|00006150| 43 6f 6d 6d 61 6e 64 29 | 20 7b 0d 09 44 42 50 74 |Command)| {..DBPt|
|00006160| 72 09 09 6e 6f 64 65 20 | 3d 20 28 44 42 50 74 72 |r..node |= (DBPtr|
|00006170| 29 47 65 74 57 52 65 66 | 43 6f 6e 28 74 68 65 43 |)GetWRef|Con(theC|
|00006180| 6f 6d 6d 61 6e 64 2d 3e | 74 68 65 57 69 6e 64 6f |ommand->|theWindo|
|00006190| 77 29 3b 0d 09 57 69 6e | 64 6f 77 50 74 72 09 73 |w);..Win|dowPtr.s|
|000061a0| 61 76 65 57 69 6e 64 6f | 77 20 3d 20 6e 6f 64 65 |aveWindo|w = node|
|000061b0| 2d 3e 77 69 6e 64 6f 77 | 3b 0d 09 50 6f 69 6e 74 |->window|;..Point|
|000061c0| 09 09 09 6c 6f 63 61 6c | 50 74 3b 0d 09 73 68 6f |...local|Pt;..sho|
|000061d0| 72 74 09 09 69 6e 73 69 | 64 65 2c 20 74 68 65 49 |rt..insi|de, theI|
|000061e0| 74 65 6d 2c 20 63 6f 75 | 6e 74 3b 0d 09 52 65 63 |tem, cou|nt;..Rec|
|000061f0| 74 09 09 09 74 68 65 52 | 65 63 74 3b 0d 09 65 78 |t...theR|ect;..ex|
|00006200| 74 65 72 6e 20 09 09 44 | 42 47 6c 6f 62 61 6c 73 |tern ..D|BGlobals|
|00006210| 50 74 72 20 44 67 3b 0d | 09 0d 09 73 77 69 74 63 |Ptr Dg;.|...switc|
|00006220| 68 20 28 74 68 65 43 6f | 6d 6d 61 6e 64 2d 3e 74 |h (theCo|mmand->t|
|00006230| 68 65 54 79 70 65 29 20 | 7b 0d 09 63 61 73 65 20 |heType) |{..case |
|00006240| 27 75 70 64 74 27 3a 0d | 09 09 47 65 74 44 42 46 |'updt':.|..GetDBF|
|00006250| 72 6f 6d 57 69 6e 64 6f | 77 28 6e 6f 64 65 2d 3e |romWindo|w(node->|
|00006260| 77 69 6e 64 6f 77 29 2d | 3e 77 69 6e 64 6f 77 20 |window)-|>window |
|00006270| 3d 20 74 68 65 43 6f 6d | 6d 61 6e 64 2d 3e 74 68 |= theCom|mand->th|
|00006280| 65 57 69 6e 64 6f 77 3b | 0d 09 09 42 65 67 69 6e |eWindow;|...Begin|
|00006290| 55 70 64 61 74 65 28 74 | 68 65 43 6f 6d 6d 61 6e |Update(t|heComman|
|000062a0| 64 2d 3e 74 68 65 57 69 | 6e 64 6f 77 29 3b 0d 09 |d->theWi|ndow);..|
|000062b0| 09 0d 09 09 44 42 53 65 | 74 55 70 50 65 6e 53 74 |....DBSe|tUpPenSt|
|000062c0| 75 66 66 28 74 68 65 43 | 6f 6d 6d 61 6e 64 2d 3e |uff(theC|ommand->|
|000062d0| 74 68 65 57 69 6e 64 6f | 77 2c 20 6e 6f 64 65 2d |theWindo|w, node-|
|000062e0| 3e 72 65 73 4e 61 6d 65 | 2c 20 66 61 6c 73 65 29 |>resName|, false)|
|000062f0| 3b 0d 0d 2f 2f 44 72 61 | 77 20 74 68 65 20 6f 75 |;..//Dra|w the ou|
|00006300| 74 65 72 20 62 61 63 6b | 67 72 6f 75 6e 64 0d 09 |ter back|ground..|
|00006310| 09 69 66 20 28 44 67 2d | 3e 63 6f 6c 6f 72 2e 69 |.if (Dg-|>color.i|
|00006320| 73 43 61 70 61 62 6c 65 | 29 0d 09 09 09 52 47 42 |sCapable|)....RGB|
|00006330| 42 61 63 6b 43 6f 6c 6f | 72 28 26 44 67 2d 3e 63 |BackColo|r(&Dg->c|
|00006340| 6f 6c 6f 72 2e 6c 69 67 | 68 74 47 72 61 79 29 3b |olor.lig|htGray);|
|00006350| 0d 09 09 45 72 61 73 65 | 52 65 63 74 28 26 6e 6f |...Erase|Rect(&no|
|00006360| 64 65 2d 3e 62 6f 75 6e | 64 73 29 3b 0d 0d 2f 2f |de->boun|ds);..//|
|00006370| 44 72 61 77 20 74 68 65 | 20 61 63 74 75 61 6c 20 |Draw the| actual |
|00006380| 68 65 6c 70 62 61 72 20 | 69 74 73 65 6c 66 09 09 |helpbar |itself..|
|00006390| 0d 09 09 44 42 44 72 61 | 77 33 44 52 65 63 74 28 |...DBDra|w3DRect(|
|000063a0| 26 6e 6f 64 65 2d 3e 62 | 6f 75 6e 64 73 2c 20 66 |&node->b|ounds, f|
|000063b0| 61 6c 73 65 29 3b 0d 0d | 2f 2f 44 72 61 77 20 74 |alse);..|//Draw t|
|000063c0| 68 65 20 64 69 76 69 64 | 65 72 20 62 61 72 0d 09 |he divid|er bar..|
|000063d0| 09 4d 6f 76 65 54 6f 28 | 30 2c 20 6e 6f 64 65 2d |.MoveTo(|0, node-|
|000063e0| 3e 62 6f 75 6e 64 73 2e | 62 6f 74 74 6f 6d 2d 31 |>bounds.|bottom-1|
|000063f0| 29 3b 0d 09 09 4c 69 6e | 65 54 6f 28 74 68 65 43 |);...Lin|eTo(theC|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.